Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / InvalidCastException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLUtility.cs
- SectionInput.cs
- XhtmlTextWriter.cs
- EmbeddedMailObject.cs
- ProgressBarRenderer.cs
- RenamedEventArgs.cs
- FrameworkElement.cs
- PageContent.cs
- EnumConverter.cs
- AppDomainShutdownMonitor.cs
- MappingSource.cs
- ScrollBarRenderer.cs
- SystemWebSectionGroup.cs
- CompilationSection.cs
- HideDisabledControlAdapter.cs
- ReadOnlyCollectionBase.cs
- CharKeyFrameCollection.cs
- PointLightBase.cs
- WebPermission.cs
- RadioButtonAutomationPeer.cs
- ObsoleteAttribute.cs
- DataControlImageButton.cs
- ManagementException.cs
- BuildTopDownAttribute.cs
- AnnotationHelper.cs
- XmlProcessingInstruction.cs
- SystemPens.cs
- BuildProviderAppliesToAttribute.cs
- TextBoxLine.cs
- IISUnsafeMethods.cs
- InstancePersistenceException.cs
- ComponentManagerBroker.cs
- OutputCacheProfileCollection.cs
- SingleResultAttribute.cs
- TextHintingModeValidation.cs
- StateElementCollection.cs
- ComPersistableTypeElementCollection.cs
- SiteMapProvider.cs
- ConfigUtil.cs
- FormViewModeEventArgs.cs
- MailHeaderInfo.cs
- XmlElementList.cs
- SafeViewOfFileHandle.cs
- StringSorter.cs
- UnsafeNetInfoNativeMethods.cs
- ListView.cs
- UseLicense.cs
- _Rfc2616CacheValidators.cs
- AppSettingsExpressionBuilder.cs
- ListBindingHelper.cs
- AtomContentProperty.cs
- ComplexType.cs
- HttpListenerTimeoutManager.cs
- Invariant.cs
- IdentitySection.cs
- CodeVariableReferenceExpression.cs
- ComponentChangingEvent.cs
- VarInfo.cs
- SelectedGridItemChangedEvent.cs
- SafeIUnknown.cs
- WebPartConnectVerb.cs
- CryptoStream.cs
- FileRecordSequenceHelper.cs
- MailHeaderInfo.cs
- SQLInt32Storage.cs
- XmlValueConverter.cs
- Point3DConverter.cs
- VisualTreeUtils.cs
- CodeAttributeDeclaration.cs
- DSGeneratorProblem.cs
- EncryptedPackageFilter.cs
- TextOnlyOutput.cs
- Util.cs
- ZoomPercentageConverter.cs
- StorageMappingItemLoader.cs
- SQLChars.cs
- MetadataItem.cs
- FormViewInsertEventArgs.cs
- XmlSchemaType.cs
- NavigationPropertyEmitter.cs
- RSAPKCS1SignatureFormatter.cs
- Size3D.cs
- RegexEditorDialog.cs
- precedingquery.cs
- EntityDataSource.cs
- SQLBinary.cs
- XsltConvert.cs
- DataColumnSelectionConverter.cs
- ResourcesBuildProvider.cs
- RelatedCurrencyManager.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- OpCellTreeNode.cs
- HighlightComponent.cs
- XamlDebuggerXmlReader.cs
- ConfigXmlWhitespace.cs
- EntityViewGenerationConstants.cs
- CurrencyManager.cs
- FeatureSupport.cs
- ToolStripProgressBar.cs
- MethodToken.cs