Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeSnippetExpression.cs
- MonitoringDescriptionAttribute.cs
- XmlSchemaValidationException.cs
- DbMetaDataColumnNames.cs
- NegotiateStream.cs
- RetrieveVirtualItemEventArgs.cs
- ApplicationDirectoryMembershipCondition.cs
- ScriptDescriptor.cs
- FileLogRecordStream.cs
- XPathMessageFilterElement.cs
- ComponentResourceKey.cs
- SQLMoney.cs
- _NegotiateClient.cs
- GeneratedView.cs
- QueueException.cs
- StrokeFIndices.cs
- DataBoundControlHelper.cs
- BindToObject.cs
- TraceProvider.cs
- HttpInputStream.cs
- X509ServiceCertificateAuthentication.cs
- ToolboxDataAttribute.cs
- FixedMaxHeap.cs
- CharacterMetrics.cs
- ThicknessConverter.cs
- QuerySafeNavigator.cs
- BookmarkUndoUnit.cs
- HtmlTableRow.cs
- StylusPointPropertyUnit.cs
- ExpressionConverter.cs
- LineSegment.cs
- SafeNativeMethodsCLR.cs
- WebHttpDispatchOperationSelector.cs
- DiffuseMaterial.cs
- arabicshape.cs
- XmlBinaryReader.cs
- ScriptReference.cs
- DataGridViewAccessibleObject.cs
- DataServiceProcessingPipeline.cs
- RadioButton.cs
- QuotaThrottle.cs
- InfoCardSymmetricCrypto.cs
- TextChange.cs
- ScrollData.cs
- TransactionsSectionGroup.cs
- Token.cs
- MarshalDirectiveException.cs
- SHA512.cs
- RegionData.cs
- SmiMetaDataProperty.cs
- RegisteredArrayDeclaration.cs
- StylusPointProperty.cs
- BlurBitmapEffect.cs
- ThreadExceptionDialog.cs
- Bezier.cs
- FixedMaxHeap.cs
- _LocalDataStore.cs
- DataException.cs
- TempEnvironment.cs
- BasicCommandTreeVisitor.cs
- RuntimeWrappedException.cs
- CodeTypeDelegate.cs
- HttpServerVarsCollection.cs
- MatrixUtil.cs
- _NativeSSPI.cs
- QueuePathEditor.cs
- ConditionalAttribute.cs
- FormatterServices.cs
- BooleanFunctions.cs
- UnsafeNativeMethods.cs
- PresentationTraceSources.cs
- HtmlElementCollection.cs
- Encoder.cs
- WinEventTracker.cs
- ConsumerConnectionPoint.cs
- MsmqAuthenticationMode.cs
- MetafileHeaderWmf.cs
- ControlBindingsCollection.cs
- ScriptingScriptResourceHandlerSection.cs
- ObjectComplexPropertyMapping.cs
- SlotInfo.cs
- ProviderUtil.cs
- ConfigurationException.cs
- TargetConverter.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SetterTriggerConditionValueConverter.cs
- TypeHelper.cs
- PowerModeChangedEventArgs.cs
- MessageEncoder.cs
- FormsAuthenticationCredentials.cs
- SqlDataSource.cs
- PropertyPath.cs
- Collection.cs
- ProfileEventArgs.cs
- EmbossBitmapEffect.cs
- EditorAttribute.cs
- StreamUpgradeInitiator.cs
- RequestCacheManager.cs
- RequestBringIntoViewEventArgs.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs