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
- BrowserCapabilitiesFactoryBase.cs
- InkSerializer.cs
- ParserStreamGeometryContext.cs
- ReadWriteSpinLock.cs
- DiscreteKeyFrames.cs
- SignatureDescription.cs
- NCryptSafeHandles.cs
- ItemsControlAutomationPeer.cs
- ItemChangedEventArgs.cs
- sqlnorm.cs
- URLAttribute.cs
- DataControlFieldHeaderCell.cs
- FormattedText.cs
- PropertyNames.cs
- ViewStateChangedEventArgs.cs
- SqlRowUpdatedEvent.cs
- PropertyGroupDescription.cs
- TraceContext.cs
- SqlConnection.cs
- ErrorHandler.cs
- ReadOnlyObservableCollection.cs
- XmlNullResolver.cs
- MessageDecoder.cs
- LightweightEntityWrapper.cs
- SimpleExpression.cs
- EnumerableRowCollection.cs
- WSHttpTransportSecurityElement.cs
- HeaderPanel.cs
- ContextMenuAutomationPeer.cs
- MimeMapping.cs
- HtmlEncodedRawTextWriter.cs
- SynchronizationContext.cs
- MimePart.cs
- TableDesigner.cs
- PropertyToken.cs
- ProjectedWrapper.cs
- SecurityKeyUsage.cs
- UnsafeNativeMethods.cs
- CommandHelpers.cs
- PersonalizationStateInfoCollection.cs
- BulletedList.cs
- GenericAuthenticationEventArgs.cs
- ResolveMatchesApril2005.cs
- StateWorkerRequest.cs
- JsonWriter.cs
- MessageRpc.cs
- DataViewManagerListItemTypeDescriptor.cs
- WebPartZoneBase.cs
- exports.cs
- ComplexObject.cs
- ToolBarButton.cs
- SimpleMailWebEventProvider.cs
- srgsitem.cs
- QueryConverter.cs
- XmlSchemaAnnotation.cs
- Emitter.cs
- AsymmetricSignatureFormatter.cs
- DetailsViewCommandEventArgs.cs
- Win32.cs
- Schema.cs
- Span.cs
- ComponentEditorPage.cs
- IBuiltInEvidence.cs
- Zone.cs
- SimpleBitVector32.cs
- TextParagraphProperties.cs
- XomlCompilerError.cs
- ProcessThreadCollection.cs
- OverlappedAsyncResult.cs
- PerformanceCounterLib.cs
- AdornerHitTestResult.cs
- ActivationArguments.cs
- DataGridPagerStyle.cs
- XmlTypeAttribute.cs
- WebBrowserDocumentCompletedEventHandler.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EpmHelper.cs
- PageThemeCodeDomTreeGenerator.cs
- GradientBrush.cs
- TextServicesProperty.cs
- PeerServiceMessageContracts.cs
- ProfileSettings.cs
- XmlILIndex.cs
- Literal.cs
- ResourceKey.cs
- FolderBrowserDialog.cs
- CodeValidator.cs
- CollectionsUtil.cs
- XmlSchemaInclude.cs
- StreamHelper.cs
- CodeVariableReferenceExpression.cs
- WindowsFormsSectionHandler.cs
- AppDomainProtocolHandler.cs
- OutputScope.cs
- HtmlTableCell.cs
- DocumentApplicationJournalEntry.cs
- ExchangeUtilities.cs
- TemplatePagerField.cs
- SymLanguageType.cs
- Compiler.cs