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
- DebuggerAttributes.cs
- SchemaNames.cs
- StorageEntityContainerMapping.cs
- ScrollChrome.cs
- WeakEventManager.cs
- PropertyStore.cs
- NestPullup.cs
- WSSecureConversation.cs
- ExtensionQuery.cs
- SystemGatewayIPAddressInformation.cs
- WSTrust.cs
- WebControl.cs
- ToolStripItemEventArgs.cs
- SafeNativeMethodsMilCoreApi.cs
- DataSource.cs
- UnsignedPublishLicense.cs
- DataServiceConfiguration.cs
- XmlEntity.cs
- DataBindingExpressionBuilder.cs
- StateManagedCollection.cs
- RC2CryptoServiceProvider.cs
- AttributedMetaModel.cs
- ContentIterators.cs
- ServiceOperationParameter.cs
- CanonicalXml.cs
- BrowsableAttribute.cs
- DbConnectionInternal.cs
- SqlBulkCopyColumnMapping.cs
- _FtpControlStream.cs
- FlowDocument.cs
- XmlnsCache.cs
- Helper.cs
- UrlMappingsSection.cs
- RSACryptoServiceProvider.cs
- arc.cs
- FigureHelper.cs
- ProxySimple.cs
- SqlDataReader.cs
- GenerateTemporaryTargetAssembly.cs
- HtmlForm.cs
- UriParserTemplates.cs
- XmlDocumentViewSchema.cs
- DataColumnChangeEvent.cs
- BookmarkCallbackWrapper.cs
- SHA256.cs
- _HeaderInfoTable.cs
- Misc.cs
- StrokeNode.cs
- AuthenticatedStream.cs
- Themes.cs
- EntityParameter.cs
- Win32Native.cs
- FormattedTextSymbols.cs
- TaskFileService.cs
- SQLInt64.cs
- StateMachineWorkflowDesigner.cs
- IgnoreSection.cs
- GridViewRow.cs
- FillRuleValidation.cs
- ZipPackage.cs
- SqlDataSourceConfigureFilterForm.cs
- ChangeInterceptorAttribute.cs
- QilPatternVisitor.cs
- ToolstripProfessionalRenderer.cs
- NativeMethods.cs
- log.cs
- RectangleGeometry.cs
- HttpResponse.cs
- _AutoWebProxyScriptEngine.cs
- Row.cs
- DefaultMergeHelper.cs
- SqlBuilder.cs
- MulticastDelegate.cs
- DataBindingHandlerAttribute.cs
- DataObject.cs
- Rect.cs
- AxisAngleRotation3D.cs
- CodeCommentStatement.cs
- ConsumerConnectionPointCollection.cs
- QueryInterceptorAttribute.cs
- InfiniteIntConverter.cs
- HandlerBase.cs
- VerificationAttribute.cs
- PolicyException.cs
- DataServiceConfiguration.cs
- DmlSqlGenerator.cs
- ResourcesBuildProvider.cs
- PageCatalogPart.cs
- ISO2022Encoding.cs
- SubclassTypeValidatorAttribute.cs
- SqlCommandAsyncResult.cs
- RepeaterItemCollection.cs
- Timeline.cs
- OutgoingWebResponseContext.cs
- SiteMapPathDesigner.cs
- TextTreeInsertElementUndoUnit.cs
- AutomationProperty.cs
- FacetDescriptionElement.cs
- filewebrequest.cs
- ToolBarButton.cs