Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Collection.cs
- SignatureGenerator.cs
- XmlUtil.cs
- FixedSOMTableRow.cs
- EmptyElement.cs
- ReferenceService.cs
- MissingMethodException.cs
- AlgoModule.cs
- DataSpaceManager.cs
- OutgoingWebResponseContext.cs
- VoiceChangeEventArgs.cs
- MouseActionConverter.cs
- EmbeddedObject.cs
- FormsAuthentication.cs
- HtmlShimManager.cs
- TheQuery.cs
- EntitySqlException.cs
- SchemaEntity.cs
- DataGridViewLayoutData.cs
- safex509handles.cs
- NameValueConfigurationCollection.cs
- HtmlInputImage.cs
- TogglePatternIdentifiers.cs
- RegionData.cs
- XmlDsigSep2000.cs
- SR.cs
- WebPartTransformerCollection.cs
- TransportSecurityHelpers.cs
- BadImageFormatException.cs
- NamespaceEmitter.cs
- CodeAttributeArgument.cs
- GeometryDrawing.cs
- MessageLogger.cs
- OptimalTextSource.cs
- ConfigurationStrings.cs
- PropertyTab.cs
- PageParserFilter.cs
- DictionaryGlobals.cs
- ExtenderProviderService.cs
- DataViewManager.cs
- SerializationInfoEnumerator.cs
- CodeMethodInvokeExpression.cs
- ExceptionUtil.cs
- ServiceModelPerformanceCounters.cs
- EnvironmentPermission.cs
- SafeTimerHandle.cs
- DataObjectSettingDataEventArgs.cs
- UIPermission.cs
- WindowsScrollBar.cs
- RepeaterItemEventArgs.cs
- FormsAuthenticationModule.cs
- documentsequencetextcontainer.cs
- QueryLifecycle.cs
- CachedPathData.cs
- UTF32Encoding.cs
- FixedSOMLineCollection.cs
- CollectionsUtil.cs
- ObjectItemNoOpAssemblyLoader.cs
- CompoundFileStorageReference.cs
- RouteCollection.cs
- SQLInt64Storage.cs
- XmlAttributeHolder.cs
- EntityConnection.cs
- InvalidFilterCriteriaException.cs
- VisualStyleInformation.cs
- DetailsViewPagerRow.cs
- RewritingProcessor.cs
- CodeEntryPointMethod.cs
- EntityDesignerBuildProvider.cs
- DefaultTextStore.cs
- OdbcPermission.cs
- SmiEventStream.cs
- D3DImage.cs
- TimeoutHelper.cs
- CodeMethodInvokeExpression.cs
- ScalarConstant.cs
- DateTimeConverter.cs
- CroppedBitmap.cs
- PageContentCollection.cs
- QueryCacheEntry.cs
- ErrorsHelper.cs
- ConfigurationLocation.cs
- DoubleLinkList.cs
- ItemChangedEventArgs.cs
- Debug.cs
- CasesDictionary.cs
- AttachedAnnotationChangedEventArgs.cs
- MarkupExtensionParser.cs
- SharedPerformanceCounter.cs
- MemoryStream.cs
- ComponentDispatcherThread.cs
- Schema.cs
- tooltip.cs
- Function.cs
- WinFormsSecurity.cs
- ParserStreamGeometryContext.cs
- CodeDOMUtility.cs
- HttpsTransportElement.cs
- StyleCollectionEditor.cs
- EUCJPEncoding.cs