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
- DataGridViewColumnTypePicker.cs
- TypedElement.cs
- AsymmetricSignatureDeformatter.cs
- IDReferencePropertyAttribute.cs
- LinqDataView.cs
- Inflater.cs
- CompositionAdorner.cs
- Span.cs
- ExtendedProperty.cs
- RC2.cs
- ResourceContainer.cs
- ControlParameter.cs
- CodeAttributeArgument.cs
- DbDataSourceEnumerator.cs
- Pair.cs
- SvcMapFileSerializer.cs
- ThemeDirectoryCompiler.cs
- XmlConvert.cs
- ComponentChangedEvent.cs
- PointKeyFrameCollection.cs
- TreeWalkHelper.cs
- HttpRawResponse.cs
- XPathNodeIterator.cs
- NumberSubstitution.cs
- GenericAuthenticationEventArgs.cs
- IgnorePropertiesAttribute.cs
- InternalCache.cs
- CommonObjectSecurity.cs
- ApplicationDirectory.cs
- Expressions.cs
- ResourceContainer.cs
- SuppressMessageAttribute.cs
- StringFunctions.cs
- SerializationSectionGroup.cs
- XmlSerializationReader.cs
- SelectionRangeConverter.cs
- ScriptControl.cs
- LongPath.cs
- XmlReader.cs
- XslCompiledTransform.cs
- EncodingDataItem.cs
- WebMessageEncodingBindingElement.cs
- PeerApplicationLaunchInfo.cs
- SqlDataSourceConnectionPanel.cs
- EncodedStreamFactory.cs
- FontWeight.cs
- HybridWebProxyFinder.cs
- RewritingProcessor.cs
- TagPrefixAttribute.cs
- basenumberconverter.cs
- OleDbErrorCollection.cs
- IsolationInterop.cs
- CommandTreeTypeHelper.cs
- wgx_commands.cs
- ILGenerator.cs
- XmlSchemaComplexType.cs
- DataRecordInternal.cs
- OracleParameterCollection.cs
- ToolZoneDesigner.cs
- EditorPartChrome.cs
- DictionaryTraceRecord.cs
- CodeMethodInvokeExpression.cs
- DbConnectionClosed.cs
- HttpClientProtocol.cs
- CommandLibraryHelper.cs
- ViewgenContext.cs
- TargetControlTypeCache.cs
- FormatterServices.cs
- LogAppendAsyncResult.cs
- RegexRunner.cs
- RuntimeArgumentHandle.cs
- SqlTypesSchemaImporter.cs
- WorkItem.cs
- TypedReference.cs
- ListViewGroupCollectionEditor.cs
- RoutedPropertyChangedEventArgs.cs
- QuarticEase.cs
- StreamingContext.cs
- HijriCalendar.cs
- DataFormats.cs
- GroupQuery.cs
- OpacityConverter.cs
- NoResizeHandleGlyph.cs
- SHA1.cs
- Sentence.cs
- ProcessModuleCollection.cs
- CommentEmitter.cs
- ObjectManager.cs
- ConfigXmlText.cs
- TableLayoutPanel.cs
- ZipFileInfo.cs
- TemplateAction.cs
- ExpressionList.cs
- XmlSerializerSection.cs
- TypeDescriptor.cs
- BuildResultCache.cs
- LoginAutoFormat.cs
- streamingZipPartStream.cs
- UIElementCollection.cs
- CommonBehaviorsSection.cs