Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / ArrayTypeMismatchException.cs / 1 / 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); } 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); } 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
- GacUtil.cs
- EventDriven.cs
- StoreContentChangedEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- GridViewRowCollection.cs
- WebPartCatalogCloseVerb.cs
- HtmlInputImage.cs
- DtdParser.cs
- BigInt.cs
- Verify.cs
- DataGridViewCheckBoxCell.cs
- ParenExpr.cs
- C14NUtil.cs
- XmlSchemaFacet.cs
- PackageStore.cs
- SelectedGridItemChangedEvent.cs
- Exceptions.cs
- ConfigurationElementCollection.cs
- MenuCommand.cs
- RijndaelManagedTransform.cs
- AssertSection.cs
- GreaterThan.cs
- TextTreeUndo.cs
- Rotation3DAnimation.cs
- StringValidatorAttribute.cs
- PrivateFontCollection.cs
- HyperLinkStyle.cs
- CheckBox.cs
- ErrorFormatterPage.cs
- TokenBasedSet.cs
- SqlEnums.cs
- EndEvent.cs
- DataGrid.cs
- BinHexEncoder.cs
- HostedHttpRequestAsyncResult.cs
- QueryParameter.cs
- MinimizableAttributeTypeConverter.cs
- ResourcesBuildProvider.cs
- UrlPath.cs
- TraceListeners.cs
- NamespaceInfo.cs
- XmlSchemaAny.cs
- SourceFileBuildProvider.cs
- TextSelectionHighlightLayer.cs
- ScopelessEnumAttribute.cs
- ListControlConvertEventArgs.cs
- DependencyPropertyKind.cs
- ExpressionNode.cs
- AgileSafeNativeMemoryHandle.cs
- HealthMonitoringSection.cs
- MarkupExtensionReturnTypeAttribute.cs
- FileSystemInfo.cs
- ImageField.cs
- CollectionConverter.cs
- DataObjectAttribute.cs
- RepeatBehavior.cs
- COM2PropertyBuilderUITypeEditor.cs
- Ref.cs
- XmlReaderSettings.cs
- DbConnectionClosed.cs
- PrintController.cs
- Binding.cs
- ManagedCodeMarkers.cs
- SplineKeyFrames.cs
- FilterElement.cs
- URL.cs
- WizardDesigner.cs
- WeakReference.cs
- GZipDecoder.cs
- StreamWithDictionary.cs
- ILGenerator.cs
- InputProcessorProfiles.cs
- ButtonStandardAdapter.cs
- EntityDataSourceDesigner.cs
- BitmapEffectGeneralTransform.cs
- complextypematerializer.cs
- StrongNamePublicKeyBlob.cs
- XmlSchemaAnnotated.cs
- FtpWebRequest.cs
- DoubleLink.cs
- BitmapDownload.cs
- InstanceView.cs
- XXXOnTypeBuilderInstantiation.cs
- DataAdapter.cs
- PingReply.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TypeNameConverter.cs
- Base64Decoder.cs
- EditModeSwitchButton.cs
- VisualBrush.cs
- IntSecurity.cs
- QueryReaderSettings.cs
- IdnElement.cs
- BCLDebug.cs
- GetCryptoTransformRequest.cs
- ValidationResult.cs
- HtmlInputReset.cs
- XmlExpressionDumper.cs
- NameValueSectionHandler.cs
- TableSectionStyle.cs