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
- WebPartCatalogCloseVerb.cs
- TreeNodeBindingDepthConverter.cs
- UntrustedRecipientException.cs
- BitmapMetadataEnumerator.cs
- SafeRsaProviderHandle.cs
- TextServicesCompartmentContext.cs
- Profiler.cs
- XmlWrappingReader.cs
- WebPartHeaderCloseVerb.cs
- LicenseManager.cs
- ObjectIDGenerator.cs
- SelectionItemProviderWrapper.cs
- LinqDataSourceHelper.cs
- ClientTarget.cs
- XmlDataSourceView.cs
- SessionPageStateSection.cs
- WizardStepBase.cs
- SafeViewOfFileHandle.cs
- ReverseInheritProperty.cs
- AuthorizationRule.cs
- DoubleCollectionConverter.cs
- DataSetViewSchema.cs
- Vector3DAnimation.cs
- _CommandStream.cs
- AmbiguousMatchException.cs
- Tablet.cs
- SystemUdpStatistics.cs
- ToggleButton.cs
- DefaultHttpHandler.cs
- SetterBase.cs
- ConfigXmlSignificantWhitespace.cs
- DiagnosticsConfiguration.cs
- TransactionState.cs
- StringResourceManager.cs
- ObjectCache.cs
- LinearGradientBrush.cs
- TreeNodeCollection.cs
- MSAAEventDispatcher.cs
- NullRuntimeConfig.cs
- Renderer.cs
- DEREncoding.cs
- ListBoxItem.cs
- SqlBuffer.cs
- XPathNodeList.cs
- HtmlCommandAdapter.cs
- ObjectQueryExecutionPlan.cs
- ManagementEventArgs.cs
- MimeFormImporter.cs
- DataGridLinkButton.cs
- ConstructorNeedsTagAttribute.cs
- ScaleTransform3D.cs
- TextClipboardData.cs
- ProcessModule.cs
- ImportCatalogPart.cs
- DataGridAutoFormatDialog.cs
- SafeHandles.cs
- HandleExceptionArgs.cs
- OleDbFactory.cs
- ListViewItem.cs
- GridViewSortEventArgs.cs
- DataControlField.cs
- TimeZone.cs
- RSACryptoServiceProvider.cs
- PresentationAppDomainManager.cs
- nulltextcontainer.cs
- EmptyImpersonationContext.cs
- PackageDigitalSignatureManager.cs
- NonVisualControlAttribute.cs
- RequiredFieldValidator.cs
- Point.cs
- CustomAttributeBuilder.cs
- Evaluator.cs
- KnownColorTable.cs
- DataServiceResponse.cs
- TextElement.cs
- CheckPair.cs
- ProfileSection.cs
- SessionEndingEventArgs.cs
- FlowDocumentScrollViewer.cs
- ChangeDirector.cs
- BuildProviderAppliesToAttribute.cs
- ListBox.cs
- EditBehavior.cs
- ConnectionPoint.cs
- IdleTimeoutMonitor.cs
- EmissiveMaterial.cs
- Point.cs
- StatusBarItem.cs
- ButtonBaseAutomationPeer.cs
- ObjectDataSourceEventArgs.cs
- TemporaryBitmapFile.cs
- ComplexType.cs
- Executor.cs
- AuthStoreRoleProvider.cs
- SchemaObjectWriter.cs
- TreeViewDataItemAutomationPeer.cs
- TextRangeEditLists.cs
- BroadcastEventHelper.cs
- ProxyWebPart.cs
- TransactionFlowAttribute.cs