Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / InvalidCastException.cs / 1 / InvalidCastException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InvalidCastException ** ** ** Purpose: Exception class for bad cast conditions! ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class InvalidCastException : SystemException { public InvalidCastException() : base(Environment.GetResourceString("Arg_InvalidCastException")) { SetErrorCode(__HResults.COR_E_INVALIDCAST); } public InvalidCastException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INVALIDCAST); } public InvalidCastException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INVALIDCAST); } protected InvalidCastException(SerializationInfo info, StreamingContext context) : base(info, context) { } public InvalidCastException(String message, int errorCode) : base(message) { SetErrorCode(errorCode); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InvalidCastException ** ** ** Purpose: Exception class for bad cast conditions! ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class InvalidCastException : SystemException { public InvalidCastException() : base(Environment.GetResourceString("Arg_InvalidCastException")) { SetErrorCode(__HResults.COR_E_INVALIDCAST); } public InvalidCastException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INVALIDCAST); } public InvalidCastException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INVALIDCAST); } protected InvalidCastException(SerializationInfo info, StreamingContext context) : base(info, context) { } public InvalidCastException(String message, int errorCode) : base(message) { SetErrorCode(errorCode); } } } // 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
- BlurBitmapEffect.cs
- JsonFormatGeneratorStatics.cs
- LineServicesRun.cs
- ScriptReference.cs
- Predicate.cs
- ParameterModifier.cs
- WarningException.cs
- RightsManagementUser.cs
- TagNameToTypeMapper.cs
- OutputCacheSettings.cs
- ReadOnlyKeyedCollection.cs
- CheckBoxRenderer.cs
- OdbcEnvironment.cs
- DocumentScope.cs
- BooleanKeyFrameCollection.cs
- WebZone.cs
- ResourcePool.cs
- VisualTarget.cs
- MenuBase.cs
- ObjectToIdCache.cs
- FillErrorEventArgs.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- AuthenticationService.cs
- SymbolMethod.cs
- Vars.cs
- RuntimeArgumentHandle.cs
- AffineTransform3D.cs
- SubtreeProcessor.cs
- Stylus.cs
- SQLStringStorage.cs
- PartialArray.cs
- XPathAxisIterator.cs
- UserControlBuildProvider.cs
- PenLineCapValidation.cs
- ProfessionalColors.cs
- precedingsibling.cs
- XmlCharacterData.cs
- LiteralControl.cs
- JsonDeserializer.cs
- IdnMapping.cs
- TraceEventCache.cs
- PrinterSettings.cs
- ChunkedMemoryStream.cs
- EventRoute.cs
- MailMessage.cs
- UserMapPath.cs
- RenderData.cs
- UrlMapping.cs
- Scene3D.cs
- AssemblyResourceLoader.cs
- OdbcFactory.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XsdBuildProvider.cs
- CalendarDesigner.cs
- SqlNotificationRequest.cs
- ParameterReplacerVisitor.cs
- DataControlCommands.cs
- NetworkCredential.cs
- DbXmlEnabledProviderManifest.cs
- EnvelopedPkcs7.cs
- CustomSignedXml.cs
- TimeSpanStorage.cs
- DataSourceHelper.cs
- AsyncResult.cs
- Debug.cs
- DataGridViewBindingCompleteEventArgs.cs
- TextEditorLists.cs
- DerivedKeySecurityToken.cs
- XmlArrayItemAttributes.cs
- ServiceNameCollection.cs
- ScrollChrome.cs
- DataGridState.cs
- ExceptionUtil.cs
- SecureEnvironment.cs
- InternalMappingException.cs
- ClientSideQueueItem.cs
- DeflateEmulationStream.cs
- CommonDialog.cs
- ExtensionFile.cs
- UInt32.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SQLInt16Storage.cs
- IdentityReference.cs
- AddressingProperty.cs
- PriorityBindingExpression.cs
- Query.cs
- StringResourceManager.cs
- SecurityElement.cs
- DoubleLinkList.cs
- Label.cs
- FormViewUpdatedEventArgs.cs
- XmlDocumentSerializer.cs
- ComplexObject.cs
- DoubleStorage.cs
- FlagsAttribute.cs
- BitmapMetadata.cs
- Pkcs7Recipient.cs
- BooleanToVisibilityConverter.cs
- ping.cs
- AsyncOperation.cs