Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- documentsequencetextview.cs
- ChineseLunisolarCalendar.cs
- SqlDataSourceCache.cs
- ThemeableAttribute.cs
- RealizationDrawingContextWalker.cs
- FragmentQueryProcessor.cs
- RtfNavigator.cs
- SHA512.cs
- WindowsGraphicsWrapper.cs
- MenuItemBinding.cs
- BinaryWriter.cs
- Style.cs
- EntityPropertyMappingAttribute.cs
- SpinWait.cs
- SqlNamer.cs
- ScriptRegistrationManager.cs
- Fonts.cs
- DeferredSelectedIndexReference.cs
- SharedUtils.cs
- EmissiveMaterial.cs
- ConnectorMovedEventArgs.cs
- BulletChrome.cs
- TransformedBitmap.cs
- BooleanExpr.cs
- Marshal.cs
- AuthenticationModulesSection.cs
- WebPartActionVerb.cs
- TcpClientSocketManager.cs
- DataGridViewCheckBoxColumn.cs
- ScriptReferenceEventArgs.cs
- ExceptionUtility.cs
- StrokeDescriptor.cs
- DomainConstraint.cs
- BinaryObjectWriter.cs
- EntityDataSourceSelectingEventArgs.cs
- DataGridViewImageCell.cs
- XmlEventCache.cs
- TaskFormBase.cs
- BezierSegment.cs
- ChildTable.cs
- BinaryWriter.cs
- MaskedTextProvider.cs
- ExtentKey.cs
- TablePattern.cs
- Utils.cs
- Operand.cs
- CodeCastExpression.cs
- documentsequencetextpointer.cs
- BufferBuilder.cs
- ListBox.cs
- IISMapPath.cs
- WebServiceTypeData.cs
- SessionPageStatePersister.cs
- InfoCardBaseException.cs
- InvariantComparer.cs
- BaseParser.cs
- SecurityDescriptor.cs
- mediaeventshelper.cs
- SpAudioStreamWrapper.cs
- LayoutEditorPart.cs
- Exception.cs
- printdlgexmarshaler.cs
- _ChunkParse.cs
- HashSet.cs
- Site.cs
- SmiTypedGetterSetter.cs
- PingOptions.cs
- SmtpFailedRecipientsException.cs
- TypeDescriptorFilterService.cs
- ManifestResourceInfo.cs
- Button.cs
- AddInProcess.cs
- Number.cs
- XPathNode.cs
- StickyNoteHelper.cs
- RestHandler.cs
- TextElementEditingBehaviorAttribute.cs
- CodeExporter.cs
- DockPattern.cs
- DataGridViewIntLinkedList.cs
- EntryPointNotFoundException.cs
- CharUnicodeInfo.cs
- StylusEventArgs.cs
- GridErrorDlg.cs
- XpsLiterals.cs
- DataControlFieldCollection.cs
- ProtocolElementCollection.cs
- OleDbRowUpdatedEvent.cs
- XmlSchemaParticle.cs
- ContentElementAutomationPeer.cs
- InternalEnumValidatorAttribute.cs
- TextTreeInsertUndoUnit.cs
- DrawingServices.cs
- BreakRecordTable.cs
- DataServiceHostFactory.cs
- GeneratedContractType.cs
- RuntimeIdentifierPropertyAttribute.cs
- XamlSerializerUtil.cs
- RotateTransform.cs
- Point3DCollectionValueSerializer.cs