Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XamlGridLengthSerializer.cs
- Matrix3D.cs
- AuthorizationSection.cs
- X509Certificate2.cs
- RouteItem.cs
- Classification.cs
- AutomationTextAttribute.cs
- GridProviderWrapper.cs
- QualificationDataAttribute.cs
- SrgsRulesCollection.cs
- PropertyDescriptor.cs
- UpdatePanelControlTrigger.cs
- XmlSortKey.cs
- InstanceNotReadyException.cs
- NullableDoubleAverageAggregationOperator.cs
- Message.cs
- RootCodeDomSerializer.cs
- DataContext.cs
- SafeViewOfFileHandle.cs
- TextEditor.cs
- SerialReceived.cs
- SettingsBindableAttribute.cs
- ConstrainedDataObject.cs
- EdmValidator.cs
- PropertyGrid.cs
- Itemizer.cs
- SrgsText.cs
- ActivityValidationServices.cs
- UnsafeNativeMethods.cs
- DataGridViewCell.cs
- BaseTemplateParser.cs
- GeneratedContractType.cs
- CultureSpecificCharacterBufferRange.cs
- DateTimeFormat.cs
- MobileFormsAuthentication.cs
- TileBrush.cs
- ValidatorAttribute.cs
- DbQueryCommandTree.cs
- ReachVisualSerializerAsync.cs
- util.cs
- GreenMethods.cs
- ToolStripSeparatorRenderEventArgs.cs
- TreeNode.cs
- GuidTagList.cs
- InternalRelationshipCollection.cs
- XmlSubtreeReader.cs
- MimeFormImporter.cs
- IntSecurity.cs
- SHA256Managed.cs
- RootNamespaceAttribute.cs
- BufferedMessageData.cs
- UnauthorizedAccessException.cs
- MouseOverProperty.cs
- XhtmlConformanceSection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RowParagraph.cs
- DataSourceSelectArguments.cs
- ClientData.cs
- SqlDataSourceCache.cs
- OneWayBindingElement.cs
- AlphabeticalEnumConverter.cs
- LineServicesRun.cs
- EditableLabelControl.cs
- TextDecorationCollection.cs
- IndexerNameAttribute.cs
- XPathChildIterator.cs
- BrowserDefinition.cs
- HelpProvider.cs
- SafeWaitHandle.cs
- TransformValueSerializer.cs
- PeerPresenceInfo.cs
- DrawingContextWalker.cs
- LinqDataSourceHelper.cs
- HtmlForm.cs
- OdbcFactory.cs
- ParagraphVisual.cs
- SmiEventSink_DeferedProcessing.cs
- DataSourceControl.cs
- HtmlControlPersistable.cs
- ClipboardData.cs
- TableLayoutStyle.cs
- EmissiveMaterial.cs
- HttpContext.cs
- XmlTextWriter.cs
- OleDbRowUpdatingEvent.cs
- CompressedStack.cs
- DataPointer.cs
- _Events.cs
- AnnouncementClient.cs
- MenuScrollingVisibilityConverter.cs
- DockProviderWrapper.cs
- DataColumnCollection.cs
- ColumnMap.cs
- NativeMethods.cs
- WindowsFont.cs
- ModuleBuilder.cs
- EncoderFallback.cs
- CodeBlockBuilder.cs
- OracleConnectionString.cs
- DataListItem.cs