Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PointLight.cs
- StylusPointCollection.cs
- ColorMatrix.cs
- SystemParameters.cs
- IsolatedStoragePermission.cs
- Pts.cs
- HierarchicalDataSourceDesigner.cs
- AdRotatorDesigner.cs
- ListViewGroupItemCollection.cs
- AnimationException.cs
- Permission.cs
- XmlSiteMapProvider.cs
- MailAddress.cs
- BamlLocalizabilityResolver.cs
- DbProviderFactory.cs
- XmlSchemaRedefine.cs
- DomainLiteralReader.cs
- SqlDataSourceCommandEventArgs.cs
- CommonDialog.cs
- Int64AnimationBase.cs
- XmlSchemaImport.cs
- RootBrowserWindow.cs
- ColumnMapProcessor.cs
- EventlogProvider.cs
- EntityContainerEntitySetDefiningQuery.cs
- BaseDataList.cs
- Calendar.cs
- TypeResolvingOptions.cs
- SqlExpressionNullability.cs
- Cursors.cs
- SecureStringHasher.cs
- ModuleConfigurationInfo.cs
- XmlFormatWriterGenerator.cs
- InfoCardArgumentException.cs
- RSACryptoServiceProvider.cs
- DataGridHeaderBorder.cs
- WebPartEditorCancelVerb.cs
- TextDecoration.cs
- DynamicPropertyHolder.cs
- ReaderWriterLock.cs
- HiddenFieldPageStatePersister.cs
- XslNumber.cs
- PopupRoot.cs
- XmlWriterSettings.cs
- CommandBinding.cs
- TimeSpanParse.cs
- AsymmetricSignatureDeformatter.cs
- DesigntimeLicenseContext.cs
- ConfigurationCollectionAttribute.cs
- TrackingRecord.cs
- PenLineCapValidation.cs
- Subtract.cs
- GeometryGroup.cs
- AssemblyBuilderData.cs
- FtpCachePolicyElement.cs
- StrongNameMembershipCondition.cs
- FlowLayoutPanel.cs
- DbMetaDataFactory.cs
- WmlLiteralTextAdapter.cs
- Trace.cs
- ComponentCommands.cs
- ColumnCollection.cs
- OperationAbortedException.cs
- StringCollectionEditor.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StructuredTypeEmitter.cs
- WsdlHelpGeneratorElement.cs
- TextRange.cs
- RestClientProxyHandler.cs
- TaskScheduler.cs
- HttpAsyncResult.cs
- TableCellCollection.cs
- RijndaelManaged.cs
- EditorBrowsableAttribute.cs
- Wizard.cs
- ObjectDataSourceMethodEventArgs.cs
- DetailsView.cs
- TraceRecords.cs
- NativeCompoundFileAPIs.cs
- XsdValidatingReader.cs
- ThrowHelper.cs
- ResponseBodyWriter.cs
- ComplexPropertyEntry.cs
- FormClosedEvent.cs
- XmlTextReader.cs
- SqlTypeConverter.cs
- LambdaValue.cs
- EventMappingSettings.cs
- FileDialog_Vista.cs
- XmlAnyAttributeAttribute.cs
- SafeEventLogReadHandle.cs
- Scanner.cs
- Win32Exception.cs
- MasterPageCodeDomTreeGenerator.cs
- DbFunctionCommandTree.cs
- SqlBulkCopyColumnMapping.cs
- UshortList2.cs
- UnsafeNativeMethodsCLR.cs
- DiscoveryExceptionDictionary.cs
- SqlClientMetaDataCollectionNames.cs