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
- Merger.cs
- SecurityTokenValidationException.cs
- SystemResources.cs
- UpDownEvent.cs
- SQLInt32Storage.cs
- TextTreeTextElementNode.cs
- StaticExtensionConverter.cs
- VectorCollection.cs
- JavaScriptString.cs
- ResourceBinder.cs
- FunctionUpdateCommand.cs
- GenerateScriptTypeAttribute.cs
- TableAdapterManagerHelper.cs
- WebPartTransformerAttribute.cs
- StringOutput.cs
- MappingMetadataHelper.cs
- TraceFilter.cs
- ImageAnimator.cs
- DataSetFieldSchema.cs
- DesignerTransactionCloseEvent.cs
- EnlistmentState.cs
- VectorKeyFrameCollection.cs
- ServiceHostFactory.cs
- DesignColumn.cs
- XmlSchemaSimpleTypeRestriction.cs
- SingleAnimationBase.cs
- Expressions.cs
- HybridDictionary.cs
- OdbcTransaction.cs
- XmlName.cs
- DBSchemaTable.cs
- ColumnMap.cs
- DetailsViewUpdatedEventArgs.cs
- TCPListener.cs
- JsonUriDataContract.cs
- MissingMemberException.cs
- ScrollViewer.cs
- SerializeAbsoluteContext.cs
- FormViewPagerRow.cs
- Guid.cs
- ExpressionPrefixAttribute.cs
- Label.cs
- StagingAreaInputItem.cs
- FontSource.cs
- PermissionAttributes.cs
- XamlStream.cs
- XPathBuilder.cs
- SecurityManager.cs
- ToolStripSettings.cs
- ResolveNameEventArgs.cs
- LockCookie.cs
- SoapFaultCodes.cs
- OrderByQueryOptionExpression.cs
- StickyNoteContentControl.cs
- ConnectionDemuxer.cs
- TreeNodeStyle.cs
- assemblycache.cs
- RegexTypeEditor.cs
- WriteFileContext.cs
- CustomWebEventKey.cs
- ErrorWrapper.cs
- DatatypeImplementation.cs
- coordinator.cs
- SafeFileMapViewHandle.cs
- Transform.cs
- StackBuilderSink.cs
- MemberInfoSerializationHolder.cs
- SubMenuStyleCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- DataPagerCommandEventArgs.cs
- WinInetCache.cs
- TextTreeText.cs
- KeyValueInternalCollection.cs
- ErrorWrapper.cs
- AtlasWeb.Designer.cs
- SystemWebSectionGroup.cs
- Font.cs
- BackgroundWorker.cs
- FileInfo.cs
- WebBrowserBase.cs
- RelativeSource.cs
- PropertyGrid.cs
- ChannelSinkStacks.cs
- TextSelectionHighlightLayer.cs
- MultiTrigger.cs
- HtmlListAdapter.cs
- ProxyWebPartManager.cs
- Descriptor.cs
- StandardOleMarshalObject.cs
- ToolStripStatusLabel.cs
- GenericsNotImplementedException.cs
- Variable.cs
- HwndProxyElementProvider.cs
- ConfigXmlText.cs
- FilteredDataSetHelper.cs
- StorageTypeMapping.cs
- GenericTypeParameterConverter.cs
- ConstraintCollection.cs
- StateDesigner.CommentLayoutGlyph.cs
- CompilerScopeManager.cs