Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SiteMapSection.cs
- HttpVersion.cs
- Int16AnimationBase.cs
- Row.cs
- PerformanceCounterCategory.cs
- EntityClassGenerator.cs
- AttributeUsageAttribute.cs
- HtmlTableRowCollection.cs
- DiscoveryMessageSequenceGenerator.cs
- LogicalCallContext.cs
- RepeaterItem.cs
- FrameworkElement.cs
- DockPanel.cs
- TypeGeneratedEventArgs.cs
- MobileControlsSectionHelper.cs
- CollectionViewSource.cs
- BrowserInteropHelper.cs
- StorageAssociationTypeMapping.cs
- MethodBuilder.cs
- BaseTemplateCodeDomTreeGenerator.cs
- NameSpaceExtractor.cs
- CqlParserHelpers.cs
- FileChangesMonitor.cs
- ConfigurationElementProperty.cs
- TableAdapterManagerHelper.cs
- ConditionalAttribute.cs
- GridView.cs
- TableRowCollection.cs
- TextElementEnumerator.cs
- DbCommandTree.cs
- InheritanceAttribute.cs
- TrustManager.cs
- PeerToPeerException.cs
- SqlVisitor.cs
- DigitShape.cs
- SqlTypeSystemProvider.cs
- XmlSecureResolver.cs
- PropertyMapper.cs
- DynamicValidatorEventArgs.cs
- HttpUnhandledOperationInvoker.cs
- MessageFormatterConverter.cs
- CookieProtection.cs
- RegexTree.cs
- Track.cs
- BindingList.cs
- WinFormsSecurity.cs
- FontEmbeddingManager.cs
- QueryCacheManager.cs
- IgnoreSectionHandler.cs
- XPathDocumentIterator.cs
- WindowsListViewGroupHelper.cs
- MsmqVerifier.cs
- ComponentEditorPage.cs
- ZipIOLocalFileHeader.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ExpandCollapseProviderWrapper.cs
- StatusBar.cs
- mansign.cs
- InlineUIContainer.cs
- GridViewCommandEventArgs.cs
- TableAdapterManagerNameHandler.cs
- TableParagraph.cs
- QueryCacheKey.cs
- DataGridViewTextBoxCell.cs
- HyperLink.cs
- BlurBitmapEffect.cs
- BufferedGraphics.cs
- AppAction.cs
- HwndPanningFeedback.cs
- Transform.cs
- StrongNameIdentityPermission.cs
- CalendarTable.cs
- SafeHandles.cs
- XPathNavigatorReader.cs
- IOException.cs
- ThreadSafeList.cs
- ToolStripStatusLabel.cs
- SoapTypeAttribute.cs
- OpCellTreeNode.cs
- NativeMethods.cs
- DbProviderConfigurationHandler.cs
- TargetParameterCountException.cs
- AxisAngleRotation3D.cs
- DateTimeFormat.cs
- DataQuery.cs
- COMException.cs
- ReaderWriterLockWrapper.cs
- StylusCollection.cs
- BrowserCapabilitiesFactory.cs
- ComplexPropertyEntry.cs
- Byte.cs
- CreateUserWizardStep.cs
- TransformerConfigurationWizardBase.cs
- WindowCollection.cs
- ToolStripTemplateNode.cs
- RenderingBiasValidation.cs
- CellTreeNode.cs
- StateRuntime.cs
- SafeArrayRankMismatchException.cs
- Light.cs