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
- PageScaling.cs
- EnumerableCollectionView.cs
- SystemFonts.cs
- InertiaTranslationBehavior.cs
- ColorTransformHelper.cs
- PeerResolverElement.cs
- LongValidator.cs
- AppDomainUnloadedException.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- HttpCookiesSection.cs
- ProcessHostServerConfig.cs
- ToolBarOverflowPanel.cs
- BinarySerializer.cs
- ExplicitDiscriminatorMap.cs
- BufferBuilder.cs
- ApplicationActivator.cs
- Operator.cs
- HttpListenerPrefixCollection.cs
- RefreshPropertiesAttribute.cs
- EasingQuaternionKeyFrame.cs
- ZipFileInfoCollection.cs
- CustomLineCap.cs
- EntityDataSourceDataSelection.cs
- OptionalRstParameters.cs
- ResourceReferenceExpressionConverter.cs
- PreservationFileWriter.cs
- HtmlTextArea.cs
- Panel.cs
- CurrentChangingEventArgs.cs
- DbReferenceCollection.cs
- Privilege.cs
- FormViewDeleteEventArgs.cs
- ResourceWriter.cs
- Vector.cs
- XamlTreeBuilder.cs
- CounterNameConverter.cs
- WindowsContainer.cs
- DesignerTextViewAdapter.cs
- StringConverter.cs
- TreeNodeBinding.cs
- SrgsGrammarCompiler.cs
- SqlXml.cs
- WindowsListViewScroll.cs
- PseudoWebRequest.cs
- SizeConverter.cs
- DropShadowBitmapEffect.cs
- DebugControllerThread.cs
- DrawingGroup.cs
- NameSpaceExtractor.cs
- EventDescriptor.cs
- ExpressionBuilderCollection.cs
- WebPartEditorApplyVerb.cs
- LineSegment.cs
- XmlSchemaObjectTable.cs
- ToolStripComboBox.cs
- HttpServerChannel.cs
- Helper.cs
- BinaryConverter.cs
- TreeView.cs
- ExpressionVisitor.cs
- SupportsEventValidationAttribute.cs
- XhtmlBasicObjectListAdapter.cs
- InstancePersistenceCommandException.cs
- WindowInteractionStateTracker.cs
- ScrollChrome.cs
- CacheHelper.cs
- RuntimeConfigLKG.cs
- ProtectedConfiguration.cs
- OdbcTransaction.cs
- SqlBuilder.cs
- CodePageEncoding.cs
- SendSecurityHeaderElement.cs
- XmlQualifiedNameTest.cs
- MonthCalendar.cs
- IdentityNotMappedException.cs
- Enum.cs
- Attributes.cs
- DashStyle.cs
- XPathArrayIterator.cs
- DetailsView.cs
- InternalResources.cs
- ClientSponsor.cs
- ZoneButton.cs
- AliasGenerator.cs
- SpecialNameAttribute.cs
- WindowsSolidBrush.cs
- LazyInitializer.cs
- HttpModuleAction.cs
- WrapPanel.cs
- StyleXamlParser.cs
- CodeDomConfigurationHandler.cs
- LoginUtil.cs
- HttpRawResponse.cs
- TagElement.cs
- SponsorHelper.cs
- RC2CryptoServiceProvider.cs
- ToolTipService.cs
- Button.cs
- DataProviderNameConverter.cs
- HashMembershipCondition.cs