Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ArrayTypeMismatchException.cs / 1305376 / ArrayTypeMismatchException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ArrayTypeMismatchException ** ** ** Purpose: The arrays are of different primitive types. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; // The ArrayMismatchException is thrown when an attempt to store // an object of the wrong type within an array occurs. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class ArrayTypeMismatchException : SystemException { // Creates a new ArrayMismatchException with its message string set to // the empty string, its HRESULT set to COR_E_ARRAYTYPEMISMATCH, // and its ExceptionInfo reference set to null. public ArrayTypeMismatchException() : base(Environment.GetResourceString("Arg_ArrayTypeMismatchException")) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } // Creates a new ArrayMismatchException with its message string set to // message, its HRESULT set to COR_E_ARRAYTYPEMISMATCH, // and its ExceptionInfo reference set to null. // public ArrayTypeMismatchException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } public ArrayTypeMismatchException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } [System.Security.SecuritySafeCritical] // auto-generated protected ArrayTypeMismatchException(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. // // ==--== /*============================================================================== ** ** Class: ArrayTypeMismatchException ** ** ** Purpose: The arrays are of different primitive types. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; // The ArrayMismatchException is thrown when an attempt to store // an object of the wrong type within an array occurs. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class ArrayTypeMismatchException : SystemException { // Creates a new ArrayMismatchException with its message string set to // the empty string, its HRESULT set to COR_E_ARRAYTYPEMISMATCH, // and its ExceptionInfo reference set to null. public ArrayTypeMismatchException() : base(Environment.GetResourceString("Arg_ArrayTypeMismatchException")) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } // Creates a new ArrayMismatchException with its message string set to // message, its HRESULT set to COR_E_ARRAYTYPEMISMATCH, // and its ExceptionInfo reference set to null. // public ArrayTypeMismatchException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } public ArrayTypeMismatchException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ARRAYTYPEMISMATCH); } [System.Security.SecuritySafeCritical] // auto-generated protected ArrayTypeMismatchException(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
- StylusShape.cs
- ToolStripDesignerUtils.cs
- FrameworkElementFactory.cs
- ConfigurationSchemaErrors.cs
- DataGridColumnCollection.cs
- _Semaphore.cs
- IPHostEntry.cs
- XmlIlGenerator.cs
- ConstantSlot.cs
- WSHttpBindingElement.cs
- ConstantExpression.cs
- GestureRecognizer.cs
- SecureStringHasher.cs
- DateTimeAutomationPeer.cs
- CapiSafeHandles.cs
- DocumentViewerConstants.cs
- UInt32.cs
- ComMethodElement.cs
- EdmEntityTypeAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- DataObjectAttribute.cs
- ReferenceEqualityComparer.cs
- GenericUriParser.cs
- LabelLiteral.cs
- ImageListStreamer.cs
- DisableDpiAwarenessAttribute.cs
- ListenDesigner.cs
- DecimalStorage.cs
- NativeMethods.cs
- DataColumnMapping.cs
- PackUriHelper.cs
- OleDbSchemaGuid.cs
- KeyedHashAlgorithm.cs
- RootBrowserWindow.cs
- ImageInfo.cs
- FixedStringLookup.cs
- WebPartsPersonalization.cs
- StaticSiteMapProvider.cs
- XmlDataImplementation.cs
- IEnumerable.cs
- Compress.cs
- Storyboard.cs
- ScrollContentPresenter.cs
- EngineSite.cs
- XmlSchemaGroupRef.cs
- Message.cs
- TabPanel.cs
- WithParamAction.cs
- Soap.cs
- MasterPageParser.cs
- OnOperation.cs
- LeftCellWrapper.cs
- PrintController.cs
- SafeRightsManagementQueryHandle.cs
- QuaternionAnimationUsingKeyFrames.cs
- PassportAuthenticationModule.cs
- WindowsScrollBarBits.cs
- Token.cs
- IgnoreDeviceFilterElementCollection.cs
- BamlBinaryReader.cs
- BuildProviderAppliesToAttribute.cs
- TokenizerHelper.cs
- AudioException.cs
- AnchoredBlock.cs
- ListBox.cs
- FrameworkElementAutomationPeer.cs
- DBDataPermissionAttribute.cs
- SystemGatewayIPAddressInformation.cs
- MimeParameter.cs
- SelfIssuedAuthAsymmetricKey.cs
- SqlErrorCollection.cs
- MiniCustomAttributeInfo.cs
- TypeBuilderInstantiation.cs
- PropagatorResult.cs
- SectionInput.cs
- ExpressionBuilderCollection.cs
- Visual3D.cs
- InvokeCompletedEventArgs.cs
- OverlappedContext.cs
- CollectionView.cs
- COM2TypeInfoProcessor.cs
- DbQueryCommandTree.cs
- FlowDocumentScrollViewer.cs
- DeviceSpecificChoice.cs
- TraceFilter.cs
- DoubleSumAggregationOperator.cs
- AuditLevel.cs
- TextBoxAutoCompleteSourceConverter.cs
- SizeFConverter.cs
- login.cs
- CapabilitiesUse.cs
- GeneratedView.cs
- TraceLog.cs
- Odbc32.cs
- TileModeValidation.cs
- AbstractSvcMapFileLoader.cs
- RegexCompilationInfo.cs
- StatusBarItem.cs
- SpeechRecognitionEngine.cs
- BulletDecorator.cs