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
- IncomingWebResponseContext.cs
- ImpersonationContext.cs
- UnsupportedPolicyOptionsException.cs
- ToolboxItemFilterAttribute.cs
- EtwProvider.cs
- EmptyCollection.cs
- Overlapped.cs
- SourceInterpreter.cs
- GridViewRowCollection.cs
- ItemsChangedEventArgs.cs
- DataGridCell.cs
- ILGen.cs
- DesignerActionHeaderItem.cs
- TrackingDataItem.cs
- Win32.cs
- ConfigXmlSignificantWhitespace.cs
- WeakReferenceEnumerator.cs
- FormatConvertedBitmap.cs
- TokenFactoryCredential.cs
- RelationshipEndMember.cs
- RoleManagerSection.cs
- XmlLoader.cs
- ConvertTextFrag.cs
- BuildResultCache.cs
- PolicyChain.cs
- FlowDocumentView.cs
- BindingBase.cs
- DictionaryGlobals.cs
- StringUtil.cs
- FragmentNavigationEventArgs.cs
- Bold.cs
- DiscoveryService.cs
- SqlColumnizer.cs
- SafeSecurityHandles.cs
- connectionpool.cs
- LeafCellTreeNode.cs
- SubstitutionList.cs
- TransactionInterop.cs
- GridView.cs
- EncryptedKeyIdentifierClause.cs
- SubstitutionResponseElement.cs
- ClientConfigurationSystem.cs
- DataGridRow.cs
- RegionIterator.cs
- MenuTracker.cs
- DocumentApplicationJournalEntry.cs
- NoClickablePointException.cs
- ShimAsPublicXamlType.cs
- ConstraintStruct.cs
- URLString.cs
- DataGridRelationshipRow.cs
- OperationDescription.cs
- StatusBarPanelClickEvent.cs
- ListViewEditEventArgs.cs
- ReadOnlyCollection.cs
- BamlReader.cs
- DllNotFoundException.cs
- DesignSurfaceManager.cs
- FixedSOMTableRow.cs
- DataGridViewCellLinkedList.cs
- LinkedList.cs
- MessageTransmitTraceRecord.cs
- DetailsView.cs
- PageBuildProvider.cs
- ValueCollectionParameterReader.cs
- EntityCommand.cs
- TabControlCancelEvent.cs
- StringValueSerializer.cs
- NTAccount.cs
- PropertyTab.cs
- MarshalByRefObject.cs
- ListInitExpression.cs
- QuerySubExprEliminator.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- FilterElement.cs
- XmlSchemaGroup.cs
- NotCondition.cs
- PerspectiveCamera.cs
- CachedPathData.cs
- XPathSelectionIterator.cs
- DesignerHelpers.cs
- BulletedList.cs
- FormViewDeleteEventArgs.cs
- Binding.cs
- Queue.cs
- StylusPointPropertyUnit.cs
- TdsValueSetter.cs
- IProvider.cs
- SafeReadContext.cs
- BamlTreeUpdater.cs
- UnsafeCollabNativeMethods.cs
- UniqueEventHelper.cs
- SoapObjectReader.cs
- AppDomainFactory.cs
- PropertyGridEditorPart.cs
- CheckBoxStandardAdapter.cs
- ObjectViewListener.cs
- RequestBringIntoViewEventArgs.cs
- OleDragDropHandler.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs