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
- TemplateColumn.cs
- SafeFindHandle.cs
- IISMapPath.cs
- RowsCopiedEventArgs.cs
- PathTooLongException.cs
- AutomationEventArgs.cs
- ObjectQuery_EntitySqlExtensions.cs
- ReliableChannelListener.cs
- COSERVERINFO.cs
- SettingsProviderCollection.cs
- NodeFunctions.cs
- SAPIEngineTypes.cs
- Point3DAnimationBase.cs
- AlphabeticalEnumConverter.cs
- DataGridViewTextBoxEditingControl.cs
- MaterialCollection.cs
- JapaneseCalendar.cs
- SqlRetyper.cs
- ItemsControl.cs
- COSERVERINFO.cs
- HashRepartitionEnumerator.cs
- DbUpdateCommandTree.cs
- TypeTypeConverter.cs
- GridPatternIdentifiers.cs
- shaper.cs
- SystemIcmpV4Statistics.cs
- OdbcFactory.cs
- SiteMembershipCondition.cs
- FrameworkTemplate.cs
- _AutoWebProxyScriptWrapper.cs
- PrintDialog.cs
- ListManagerBindingsCollection.cs
- DataGridViewDataConnection.cs
- ICollection.cs
- MarshalByValueComponent.cs
- AttributeData.cs
- HttpRequestWrapper.cs
- CompModSwitches.cs
- MsmqInputChannelListenerBase.cs
- FilterableAttribute.cs
- GridItemPattern.cs
- BitmapCache.cs
- Size3D.cs
- UpdateTranslator.cs
- TreeNodeBinding.cs
- WebPartConnectionCollection.cs
- XmlTextEncoder.cs
- HeaderCollection.cs
- MaskedTextBoxTextEditor.cs
- NavigationExpr.cs
- GridViewDeleteEventArgs.cs
- ExecutionContext.cs
- XPathNodeIterator.cs
- DiagnosticTrace.cs
- HtmlInputPassword.cs
- ToolStripLabel.cs
- DeviceContexts.cs
- SoapIgnoreAttribute.cs
- ContainerCodeDomSerializer.cs
- DataGridViewSortCompareEventArgs.cs
- WorkflowMarkupSerializer.cs
- SBCSCodePageEncoding.cs
- CqlErrorHelper.cs
- InstanceDescriptor.cs
- CodeNamespaceImport.cs
- XPathDescendantIterator.cs
- DisposableCollectionWrapper.cs
- DomNameTable.cs
- EndOfStreamException.cs
- WebProxyScriptElement.cs
- ContentFileHelper.cs
- ExpandedProjectionNode.cs
- PromptBuilder.cs
- RectangleHotSpot.cs
- ExecutionEngineException.cs
- RecordsAffectedEventArgs.cs
- TypeDefinition.cs
- StringSorter.cs
- ConditionalAttribute.cs
- WithStatement.cs
- PropertyMapper.cs
- PersistChildrenAttribute.cs
- PrincipalPermission.cs
- ToolStripInSituService.cs
- DataDocumentXPathNavigator.cs
- HiddenField.cs
- WindowClosedEventArgs.cs
- EventBookmark.cs
- DataGridClipboardHelper.cs
- GestureRecognizer.cs
- datacache.cs
- EventDescriptor.cs
- LeafCellTreeNode.cs
- ResolveCriteria11.cs
- AppDomainProtocolHandler.cs
- ContractTypeNameElement.cs
- DataViewSetting.cs
- SqlCommandSet.cs
- ServiceCredentials.cs
- NonSerializedAttribute.cs