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
- DropDownList.cs
- PathGeometry.cs
- CacheAxisQuery.cs
- HttpCapabilitiesBase.cs
- XmlSortKeyAccumulator.cs
- Listbox.cs
- OrderedDictionaryStateHelper.cs
- DesignerActionKeyboardBehavior.cs
- TagPrefixInfo.cs
- ActiveXSerializer.cs
- ObjectStorage.cs
- QueryExpression.cs
- PerformanceCounterLib.cs
- DataGridViewCellEventArgs.cs
- TextTreeRootTextBlock.cs
- XmlNamespaceMappingCollection.cs
- MonthCalendar.cs
- EventPrivateKey.cs
- CodeLabeledStatement.cs
- CryptoProvider.cs
- XslAst.cs
- Psha1DerivedKeyGenerator.cs
- _BasicClient.cs
- KeySplineConverter.cs
- CryptographicAttribute.cs
- DataSvcMapFileSerializer.cs
- loginstatus.cs
- CipherData.cs
- _AutoWebProxyScriptEngine.cs
- ConfigurationPermission.cs
- SharedPerformanceCounter.cs
- TableLayoutStyle.cs
- PassportPrincipal.cs
- PopupControlService.cs
- Expression.cs
- CanonicalFontFamilyReference.cs
- SchemaComplexType.cs
- DbgCompiler.cs
- PrinterResolution.cs
- TextServicesCompartmentContext.cs
- VScrollBar.cs
- IssuanceLicense.cs
- WindowsListViewGroup.cs
- Listen.cs
- ConnectionProviderAttribute.cs
- CompositeActivityMarkupSerializer.cs
- SafeMILHandle.cs
- ConcurrentDictionary.cs
- VersionValidator.cs
- SectionRecord.cs
- DetailsViewModeEventArgs.cs
- CqlParser.cs
- FrameworkPropertyMetadata.cs
- DodSequenceMerge.cs
- XmlNullResolver.cs
- HtmlTableRowCollection.cs
- DecoderBestFitFallback.cs
- MdiWindowListItemConverter.cs
- ReferenceSchema.cs
- BindingMAnagerBase.cs
- ExeConfigurationFileMap.cs
- BasicKeyConstraint.cs
- SiteMapDataSource.cs
- TreeNodeStyle.cs
- StateFinalizationActivity.cs
- ProcessHost.cs
- StorageSetMapping.cs
- TextRunTypographyProperties.cs
- WindowsListViewSubItem.cs
- PipelineModuleStepContainer.cs
- Converter.cs
- RawAppCommandInputReport.cs
- DoubleConverter.cs
- AssemblyLoader.cs
- InProcStateClientManager.cs
- KnownBoxes.cs
- CodeSnippetTypeMember.cs
- TcpSocketManager.cs
- Page.cs
- ContainerUtilities.cs
- FreeFormDesigner.cs
- HostProtectionPermission.cs
- SerializationObjectManager.cs
- NameValueConfigurationCollection.cs
- Paragraph.cs
- HttpWebRequest.cs
- Metadata.cs
- WhereQueryOperator.cs
- PointAnimation.cs
- ChannelFactoryRefCache.cs
- MetadataItemEmitter.cs
- ProxyWebPartManager.cs
- ObjectComplexPropertyMapping.cs
- WinCategoryAttribute.cs
- XmlStringTable.cs
- CodeAccessPermission.cs
- PageSettings.cs
- NameValuePermission.cs
- HtmlContainerControl.cs
- DataContract.cs