Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ArrayTypeMismatchException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
- ChildrenQuery.cs
- OneWayChannelFactory.cs
- ObjectStorage.cs
- Line.cs
- XmlNodeChangedEventArgs.cs
- PrintPageEvent.cs
- SecurityKeyUsage.cs
- WSSecurityPolicy.cs
- DataGridViewButtonCell.cs
- GridEntry.cs
- ObjectDataSourceEventArgs.cs
- ConfigXmlSignificantWhitespace.cs
- MenuItemBinding.cs
- CodeEntryPointMethod.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TrackingProfileDeserializationException.cs
- PersonalizationStateQuery.cs
- BitmapEffectGeneralTransform.cs
- PathFigureCollectionConverter.cs
- RegionIterator.cs
- StructuredTypeEmitter.cs
- Scanner.cs
- PageAsyncTask.cs
- XmlTextEncoder.cs
- ISAPIWorkerRequest.cs
- BStrWrapper.cs
- ParsedRoute.cs
- ObjectContext.cs
- PackageRelationshipSelector.cs
- ConfigXmlText.cs
- XmlArrayItemAttribute.cs
- ConnectionStringSettingsCollection.cs
- ComplexTypeEmitter.cs
- ArrayTypeMismatchException.cs
- OracleNumber.cs
- AxWrapperGen.cs
- LicenseManager.cs
- Trigger.cs
- Figure.cs
- ByteConverter.cs
- QuaternionAnimation.cs
- Models.cs
- SvcMapFileLoader.cs
- TextElementCollectionHelper.cs
- AttributeQuery.cs
- SqlDataSourceQueryEditor.cs
- Relationship.cs
- DataGridViewCheckBoxColumn.cs
- SqlConnectionString.cs
- TrackingWorkflowEventArgs.cs
- SQLInt32.cs
- InitializingNewItemEventArgs.cs
- WinCategoryAttribute.cs
- XmlUtil.cs
- BuilderPropertyEntry.cs
- NamespaceExpr.cs
- TagPrefixCollection.cs
- Drawing.cs
- ThreadStartException.cs
- Conditional.cs
- EditingCommands.cs
- TreeBuilderBamlTranslator.cs
- StreamingContext.cs
- SqlNotificationRequest.cs
- CreateUserWizardStep.cs
- OrderedParallelQuery.cs
- FileLevelControlBuilderAttribute.cs
- PermissionListSet.cs
- XmlAnyElementAttributes.cs
- HwndProxyElementProvider.cs
- Int64Animation.cs
- SiteMapDataSource.cs
- PagedControl.cs
- XmlBoundElement.cs
- XPathCompileException.cs
- SupportingTokenParameters.cs
- TextWriter.cs
- TableRowGroup.cs
- unitconverter.cs
- SetterBaseCollection.cs
- MappingModelBuildProvider.cs
- ProcessInputEventArgs.cs
- CriticalFinalizerObject.cs
- TdsParserSessionPool.cs
- NamedPermissionSet.cs
- SafeEventLogWriteHandle.cs
- BindingEntityInfo.cs
- serverconfig.cs
- CultureNotFoundException.cs
- WebPartMovingEventArgs.cs
- DataRecordInfo.cs
- OpenTypeLayout.cs
- GlyphRun.cs
- Validator.cs
- KerberosSecurityTokenProvider.cs
- PageThemeCodeDomTreeGenerator.cs
- UnsettableComboBox.cs
- DataGridViewIntLinkedList.cs
- ProjectedSlot.cs
- SqlFunctionAttribute.cs