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
- OutOfMemoryException.cs
- Section.cs
- WindowsListBox.cs
- DataTransferEventArgs.cs
- DbConnectionStringBuilder.cs
- SessionPageStatePersister.cs
- FtpWebResponse.cs
- TaskFormBase.cs
- DataKeyCollection.cs
- SemaphoreSlim.cs
- SetterBaseCollection.cs
- Hex.cs
- ViewManager.cs
- StaticSiteMapProvider.cs
- MgmtConfigurationRecord.cs
- StringAnimationBase.cs
- ObjectViewListener.cs
- mansign.cs
- SpnegoTokenAuthenticator.cs
- CommittableTransaction.cs
- ZipIOExtraFieldZip64Element.cs
- AngleUtil.cs
- BaseTemplateParser.cs
- SqlWorkflowInstanceStoreLock.cs
- HandleCollector.cs
- DynamicDataResources.Designer.cs
- GridViewPageEventArgs.cs
- WindowsPen.cs
- MultiAsyncResult.cs
- FilteredReadOnlyMetadataCollection.cs
- ComponentDispatcher.cs
- IApplicationTrustManager.cs
- PageCache.cs
- DeclarativeExpressionConditionDeclaration.cs
- Semaphore.cs
- SpAudioStreamWrapper.cs
- DataKeyCollection.cs
- MSG.cs
- BuilderPropertyEntry.cs
- MyContact.cs
- NamespaceInfo.cs
- FontFamilyConverter.cs
- GeneralTransform3DTo2D.cs
- ColorMap.cs
- CodeSnippetStatement.cs
- DummyDataSource.cs
- ComplexObject.cs
- ThreadStaticAttribute.cs
- _CommandStream.cs
- TableCellAutomationPeer.cs
- AutomationEvent.cs
- ChangeDirector.cs
- EntityUtil.cs
- ClientProxyGenerator.cs
- FormsAuthenticationEventArgs.cs
- DataDocumentXPathNavigator.cs
- ChannelServices.cs
- DataSourceCacheDurationConverter.cs
- HandlerFactoryWrapper.cs
- NextPreviousPagerField.cs
- ReachSerializer.cs
- QilDataSource.cs
- WindowHelperService.cs
- PieceNameHelper.cs
- HierarchicalDataSourceConverter.cs
- FocusTracker.cs
- RelAssertionDirectKeyIdentifierClause.cs
- SqlRecordBuffer.cs
- VScrollBar.cs
- PageBuildProvider.cs
- DataGridColumn.cs
- ExtendedProtectionPolicyElement.cs
- TableParagraph.cs
- ListViewInsertedEventArgs.cs
- AmbiguousMatchException.cs
- TextFormatterContext.cs
- AssemblyCollection.cs
- ActivityBuilderHelper.cs
- IDQuery.cs
- AtomMaterializer.cs
- Collection.cs
- QueryParameter.cs
- EntityDataSourceValidationException.cs
- Double.cs
- SingleConverter.cs
- TextRunProperties.cs
- IISUnsafeMethods.cs
- latinshape.cs
- ThreadAttributes.cs
- XmlArrayItemAttributes.cs
- HMACSHA384.cs
- Propagator.Evaluator.cs
- DataGridItem.cs
- FieldInfo.cs
- BaseTemplateBuildProvider.cs
- _StreamFramer.cs
- DynamicQueryStringParameter.cs
- ListViewTableRow.cs
- ModuleConfigurationInfo.cs
- RegexRunnerFactory.cs