Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlMapping.cs
- AppliedDeviceFiltersDialog.cs
- DataGridItemCollection.cs
- DrawingContextDrawingContextWalker.cs
- SoundPlayerAction.cs
- MethodImplAttribute.cs
- DataGridViewCellConverter.cs
- HeaderLabel.cs
- Lookup.cs
- DoubleConverter.cs
- ExpressionBindingCollection.cs
- SortedList.cs
- ValueType.cs
- DbConnectionPoolCounters.cs
- ToolStripContentPanel.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- CodeNamespaceCollection.cs
- ButtonField.cs
- BamlLocalizableResourceKey.cs
- FocusTracker.cs
- PropertyEmitter.cs
- MenuTracker.cs
- Column.cs
- DesignerVerbCollection.cs
- ConfigXmlComment.cs
- XmlIlTypeHelper.cs
- NetworkInformationPermission.cs
- TimerEventSubscription.cs
- BitmapSizeOptions.cs
- MediaTimeline.cs
- HttpVersion.cs
- CustomErrorCollection.cs
- TextTreeFixupNode.cs
- FragmentQueryProcessor.cs
- DataKeyCollection.cs
- TextSchema.cs
- TemplateField.cs
- NativeWindow.cs
- DataGridPageChangedEventArgs.cs
- CqlLexer.cs
- PointCollection.cs
- PerspectiveCamera.cs
- FileSystemEnumerable.cs
- ApplicationServiceHelper.cs
- EntityDataSourceWizardForm.cs
- GridViewRowCollection.cs
- EditorZoneBase.cs
- TableCellAutomationPeer.cs
- CssStyleCollection.cs
- IconConverter.cs
- List.cs
- WebServiceParameterData.cs
- SafePointer.cs
- Publisher.cs
- UncommonField.cs
- NominalTypeEliminator.cs
- TypeNameConverter.cs
- FileRecordSequenceCompletedAsyncResult.cs
- TypeUtils.cs
- DependencyObjectValidator.cs
- HostExecutionContextManager.cs
- TraceLog.cs
- WebPartCancelEventArgs.cs
- InvariantComparer.cs
- UrlMapping.cs
- XamlStackWriter.cs
- GraphicsContainer.cs
- ScrollBar.cs
- IconBitmapDecoder.cs
- BasicCellRelation.cs
- SystemShuttingDownException.cs
- BatchWriter.cs
- LogicalExpressionEditor.cs
- cookiecollection.cs
- FileDialog.cs
- DataGridCheckBoxColumn.cs
- BinaryFormatterWriter.cs
- CollectionChangeEventArgs.cs
- SortExpressionBuilder.cs
- ToolStripTextBox.cs
- CultureSpecificCharacterBufferRange.cs
- SchemaNames.cs
- InputScopeConverter.cs
- CommandDesigner.cs
- ScrollProperties.cs
- SafeNativeMethods.cs
- QualificationDataItem.cs
- CheckBoxFlatAdapter.cs
- MatrixUtil.cs
- BitmapInitialize.cs
- EnumValAlphaComparer.cs
- DataRecordInternal.cs
- ValidationContext.cs
- IPAddressCollection.cs
- PagePropertiesChangingEventArgs.cs
- ControlBuilderAttribute.cs
- AvTraceDetails.cs
- AnonymousIdentificationModule.cs
- PolicyStatement.cs
- CodeAccessSecurityEngine.cs