Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- GridViewColumnCollectionChangedEventArgs.cs
- FragmentQuery.cs
- Window.cs
- ToolStrip.cs
- ActivityWithResult.cs
- ContentPropertyAttribute.cs
- sitestring.cs
- SqlBooleanMismatchVisitor.cs
- FieldMetadata.cs
- PopOutPanel.cs
- QueryStringParameter.cs
- AlternationConverter.cs
- StateItem.cs
- ASCIIEncoding.cs
- ServiceDefaults.cs
- CompilationLock.cs
- BitmapVisualManager.cs
- ServiceReference.cs
- EntityDataSourceContextDisposingEventArgs.cs
- TypeUsageBuilder.cs
- QilCloneVisitor.cs
- SwitchElementsCollection.cs
- WindowHelperService.cs
- DataGridViewCellStateChangedEventArgs.cs
- ComplexLine.cs
- Int32RectValueSerializer.cs
- Panel.cs
- RightsManagementEncryptionTransform.cs
- Border.cs
- ClientFormsAuthenticationCredentials.cs
- GeneralTransform3DCollection.cs
- TextEditorMouse.cs
- MD5CryptoServiceProvider.cs
- ConfigXmlAttribute.cs
- MachineKeyConverter.cs
- RegionInfo.cs
- ContentElementAutomationPeer.cs
- CompilationSection.cs
- MsmqHostedTransportConfiguration.cs
- PreviewKeyDownEventArgs.cs
- IteratorDescriptor.cs
- WsdlBuildProvider.cs
- HtmlLink.cs
- InvokeMethod.cs
- MarkedHighlightComponent.cs
- ColumnPropertiesGroup.cs
- Vector3DCollectionConverter.cs
- MemberAccessException.cs
- ClientTarget.cs
- BooleanAnimationUsingKeyFrames.cs
- DefaultParameterValueAttribute.cs
- ImageListUtils.cs
- Type.cs
- IsolatedStorageFilePermission.cs
- Type.cs
- _ScatterGatherBuffers.cs
- MobileResource.cs
- Graphics.cs
- SBCSCodePageEncoding.cs
- AutomationElementIdentifiers.cs
- ComboBoxHelper.cs
- LineVisual.cs
- DataGridPageChangedEventArgs.cs
- IPEndPointCollection.cs
- DrawingCollection.cs
- Vector3DCollection.cs
- XmlSchemaSimpleTypeUnion.cs
- RootAction.cs
- Vector3DAnimationUsingKeyFrames.cs
- MetaModel.cs
- DBSqlParserColumnCollection.cs
- ContentPosition.cs
- MeshGeometry3D.cs
- WindowsToolbar.cs
- SourceFileInfo.cs
- FixedDSBuilder.cs
- PageContentCollection.cs
- XmlNodeWriter.cs
- SvcMapFileLoader.cs
- FontCollection.cs
- SafeNativeMethods.cs
- ValidatorCollection.cs
- PolyBezierSegmentFigureLogic.cs
- XmlSerializerVersionAttribute.cs
- CngUIPolicy.cs
- LicFileLicenseProvider.cs
- RelatedCurrencyManager.cs
- Debug.cs
- SchemaInfo.cs
- DateTimeUtil.cs
- DataServiceExpressionVisitor.cs
- XmlnsPrefixAttribute.cs
- AttributeEmitter.cs
- CorePropertiesFilter.cs
- Rule.cs
- XmlName.cs
- GridViewRowPresenterBase.cs
- DiscoveryDefaults.cs
- PropagationProtocolsTracing.cs
- dataprotectionpermission.cs