Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / TargetParameterCountException.cs / 1305376 / TargetParameterCountException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // TargetParameterCountException is thrown when the number of parameter to an // //[....] // invocation doesn't match the number expected. // // // // namespace System.Reflection { using System; using SystemException = System.SystemException; using System.Runtime.Serialization; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] #if FEATURE_CORECLR public sealed class TargetParameterCountException : Exception { // hack to make thinner happy #if false } #endif #else public sealed class TargetParameterCountException : ApplicationException { #endif //FEATURE_CORECLR public TargetParameterCountException() : base(Environment.GetResourceString("Arg_TargetParameterCountException")) { SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT); } public TargetParameterCountException(String message) : base(message) { SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT); } public TargetParameterCountException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT); } internal TargetParameterCountException(SerializationInfo info, StreamingContext context) : base (info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// // // TargetParameterCountException is thrown when the number of parameter to an // //[....] // invocation doesn't match the number expected. // // // // namespace System.Reflection { using System; using SystemException = System.SystemException; using System.Runtime.Serialization; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] #if FEATURE_CORECLR public sealed class TargetParameterCountException : Exception { // hack to make thinner happy #if false } #endif #else public sealed class TargetParameterCountException : ApplicationException { #endif //FEATURE_CORECLR public TargetParameterCountException() : base(Environment.GetResourceString("Arg_TargetParameterCountException")) { SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT); } public TargetParameterCountException(String message) : base(message) { SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT); } public TargetParameterCountException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT); } internal TargetParameterCountException(SerializationInfo info, StreamingContext context) : base (info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- panel.cs
- ExpressionVisitor.cs
- ProjectedSlot.cs
- MarshalByValueComponent.cs
- ToolStripStatusLabel.cs
- TreeView.cs
- ContextMenuService.cs
- PeerServiceMessageContracts.cs
- ProcessInfo.cs
- Size3DConverter.cs
- TaskScheduler.cs
- TransformGroup.cs
- basecomparevalidator.cs
- DataGridDetailsPresenterAutomationPeer.cs
- EditorAttribute.cs
- CultureInfo.cs
- DetailsViewRow.cs
- KnownTypesProvider.cs
- SingletonConnectionReader.cs
- BindUriHelper.cs
- ObjectItemCollection.cs
- DragStartedEventArgs.cs
- BuildResultCache.cs
- Connection.cs
- PrintingPermissionAttribute.cs
- CasesDictionary.cs
- LoadGrammarCompletedEventArgs.cs
- Code.cs
- MemoryMappedViewStream.cs
- ClassHandlersStore.cs
- PointKeyFrameCollection.cs
- WebPartTransformerAttribute.cs
- COSERVERINFO.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- EncryptedType.cs
- DataGridViewCellStateChangedEventArgs.cs
- CompensatableTransactionScopeActivityDesigner.cs
- WasEndpointConfigContainer.cs
- HtmlPhoneCallAdapter.cs
- ForceCopyBuildProvider.cs
- AmbientLight.cs
- ContentFileHelper.cs
- StringSorter.cs
- DNS.cs
- Odbc32.cs
- DatasetMethodGenerator.cs
- Socket.cs
- OleDbError.cs
- ProtocolsSection.cs
- PackageDigitalSignature.cs
- LayoutSettings.cs
- XamlParser.cs
- EdmScalarPropertyAttribute.cs
- Console.cs
- DependencyObjectCodeDomSerializer.cs
- VisualBrush.cs
- DynamicDocumentPaginator.cs
- NameScope.cs
- TreeNodeBinding.cs
- DataGridViewCellParsingEventArgs.cs
- ProfilePropertySettings.cs
- XPathPatternParser.cs
- ChineseLunisolarCalendar.cs
- TypeResolver.cs
- ContentPropertyAttribute.cs
- CoreSwitches.cs
- Module.cs
- FlowLayoutPanel.cs
- ContentType.cs
- InstallerTypeAttribute.cs
- SingleObjectCollection.cs
- DataSet.cs
- EdmTypeAttribute.cs
- WrappedDispatcherException.cs
- StoreItemCollection.cs
- ListItemCollection.cs
- SmtpFailedRecipientException.cs
- TextInfo.cs
- CheckableControlBaseAdapter.cs
- SqlDataSourceSelectingEventArgs.cs
- InternalControlCollection.cs
- TypeInformation.cs
- DataBindingValueUIHandler.cs
- ValuePatternIdentifiers.cs
- FileSystemWatcher.cs
- VarInfo.cs
- ObjectDataSourceStatusEventArgs.cs
- JsonCollectionDataContract.cs
- SystemKeyConverter.cs
- OracleConnection.cs
- baseshape.cs
- XsltLibrary.cs
- CardSpaceShim.cs
- IChannel.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- EffectiveValueEntry.cs
- TypeConvertions.cs
- Span.cs
- DragEventArgs.cs
- _ConnectionGroup.cs