Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityWrapper.cs
- WebControlParameterProxy.cs
- Variant.cs
- ReadOnlyHierarchicalDataSource.cs
- BuildProviderCollection.cs
- IOException.cs
- SiteMapNode.cs
- ChameleonKey.cs
- ServerType.cs
- NullableLongSumAggregationOperator.cs
- NonSerializedAttribute.cs
- FormViewInsertEventArgs.cs
- Selection.cs
- AppDomainProtocolHandler.cs
- PropertyInfo.cs
- CompiledRegexRunnerFactory.cs
- ColumnHeader.cs
- ScriptResourceInfo.cs
- Screen.cs
- _PooledStream.cs
- UriTemplateClientFormatter.cs
- ConnectionDemuxer.cs
- MessageContractImporter.cs
- TracingConnectionListener.cs
- __Error.cs
- RootDesignerSerializerAttribute.cs
- ListItemCollection.cs
- DataGridViewDataConnection.cs
- ConstantExpression.cs
- OrthographicCamera.cs
- RNGCryptoServiceProvider.cs
- NumberEdit.cs
- ExecutionEngineException.cs
- AppearanceEditorPart.cs
- _CommandStream.cs
- AggregateException.cs
- HandleRef.cs
- Binding.cs
- PerfService.cs
- ColorMatrix.cs
- Crc32.cs
- ZipArchive.cs
- IconBitmapDecoder.cs
- ImageSource.cs
- TrackingStringDictionary.cs
- WebPartTransformerAttribute.cs
- ResourceReferenceExpressionConverter.cs
- ExpressionList.cs
- columnmapfactory.cs
- StatusBar.cs
- SignerInfo.cs
- AppSettingsExpressionBuilder.cs
- FixedBufferAttribute.cs
- ConfigurationException.cs
- SkinBuilder.cs
- UInt64Storage.cs
- CngAlgorithm.cs
- Window.cs
- ValidationPropertyAttribute.cs
- Socket.cs
- ACL.cs
- TransactionManager.cs
- IEnumerable.cs
- EdmComplexPropertyAttribute.cs
- PolicyImporterElement.cs
- rsa.cs
- ExternalCalls.cs
- StronglyTypedResourceBuilder.cs
- MessageBodyDescription.cs
- PropVariant.cs
- DataObjectFieldAttribute.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- RealProxy.cs
- SimpleNameService.cs
- MemberJoinTreeNode.cs
- ListBoxChrome.cs
- CalendarDay.cs
- VideoDrawing.cs
- RectAnimation.cs
- ModifiableIteratorCollection.cs
- GradientBrush.cs
- MDIClient.cs
- UserUseLicenseDictionaryLoader.cs
- DrawingVisualDrawingContext.cs
- SiteMapDesignerDataSourceView.cs
- CustomValidator.cs
- XamlNamespaceHelper.cs
- InternalCache.cs
- NavigationProperty.cs
- EventRouteFactory.cs
- ErrorProvider.cs
- Image.cs
- ToolStripProgressBar.cs
- StringStorage.cs
- DocumentCollection.cs
- ToolStripDropDownClosingEventArgs.cs
- ContentFileHelper.cs
- TextViewBase.cs
- TreeNodeCollection.cs
- IdentifierCreationService.cs