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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlStreamStore.cs
- Image.cs
- DbMetaDataCollectionNames.cs
- Compiler.cs
- XmlSchemaAttribute.cs
- _NativeSSPI.cs
- BreakSafeBase.cs
- RuntimeHelpers.cs
- TTSEvent.cs
- PropertyGroupDescription.cs
- SBCSCodePageEncoding.cs
- SupportsEventValidationAttribute.cs
- SimpleBitVector32.cs
- ActionMismatchAddressingException.cs
- Peer.cs
- TextChangedEventArgs.cs
- BitConverter.cs
- RecordBuilder.cs
- GetWinFXPath.cs
- BaseCollection.cs
- SuppressIldasmAttribute.cs
- MarginsConverter.cs
- XmlDocumentFragment.cs
- _LocalDataStore.cs
- Tokenizer.cs
- ImageSourceConverter.cs
- DurationConverter.cs
- SelectedDatesCollection.cs
- CodeCatchClauseCollection.cs
- LocalizableResourceBuilder.cs
- XmlUtil.cs
- CodeGenerator.cs
- dbenumerator.cs
- HttpCacheParams.cs
- ProxyElement.cs
- CounterSetInstanceCounterDataSet.cs
- InvalidOperationException.cs
- LayoutTable.cs
- HtmlEncodedRawTextWriter.cs
- UnionCqlBlock.cs
- UrlMappingsModule.cs
- MetadataHelper.cs
- SqlDataSourceCommandEventArgs.cs
- SqlBuffer.cs
- XDRSchema.cs
- ConfigXmlAttribute.cs
- CornerRadius.cs
- WindowsIPAddress.cs
- SecurityKeyIdentifier.cs
- CodeDirectiveCollection.cs
- CultureMapper.cs
- KeyNotFoundException.cs
- ZeroOpNode.cs
- MessageEnumerator.cs
- WorkflowViewService.cs
- DependencyObject.cs
- KeyNotFoundException.cs
- Utils.cs
- LoginName.cs
- SqlDataAdapter.cs
- FixedSOMGroup.cs
- TextDecorationCollection.cs
- ControlBuilderAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TypeLibConverter.cs
- Environment.cs
- ErrorWebPart.cs
- LinkDescriptor.cs
- RegexNode.cs
- SamlAuthenticationStatement.cs
- WindowsAuthenticationEventArgs.cs
- RoleManagerEventArgs.cs
- UIAgentRequest.cs
- WinInetCache.cs
- COM2PropertyDescriptor.cs
- linebase.cs
- PropertyGridEditorPart.cs
- ImageBrush.cs
- FastEncoderStatics.cs
- securitymgrsite.cs
- Constants.cs
- SingleStorage.cs
- ContextBase.cs
- HttpPostClientProtocol.cs
- NodeFunctions.cs
- DrawingState.cs
- RuntimeUtils.cs
- List.cs
- Debug.cs
- DeferredRunTextReference.cs
- LockedBorderGlyph.cs
- PathSegmentCollection.cs
- WebPageTraceListener.cs
- WebDescriptionAttribute.cs
- AesCryptoServiceProvider.cs
- MasterPage.cs
- BaseAsyncResult.cs
- FrameworkElementFactoryMarkupObject.cs
- ResourceDescriptionAttribute.cs
- RegexNode.cs