9 [__DynamicallyInvokable]
13 [__DynamicallyInvokable]
15 : base(
Environment.GetResourceString(
"Arg_InvalidCastException"))
17 SetErrorCode(-2147467262);
22 [__DynamicallyInvokable]
26 SetErrorCode(-2147467262);
32 [__DynamicallyInvokable]
34 : base(message, innerException)
36 SetErrorCode(-2147467262);
50 [__DynamicallyInvokable]
54 SetErrorCode(errorCode);
Serves as the base class for system exceptions namespace.
The exception that is thrown for invalid casting or explicit conversion.
Describes the source and destination of a given serialized stream, and provides an additional caller-...
Provides information about, and means to manipulate, the current environment and platform....
Stores all the data needed to serialize or deserialize an object. This class cannot be inherited.
InvalidCastException(string message, int errorCode)
Initializes a new instance of the T:System.InvalidCastException class with a specified message and er...
Represents errors that occur during application execution.To browse the .NET Framework source code fo...
Specifies that the class can be serialized.
InvalidCastException(string message, Exception innerException)
Initializes a new instance of the T:System.InvalidCastException class with a specified error message ...
InvalidCastException()
Initializes a new instance of the T:System.InvalidCastException class.
InvalidCastException(string message)
Initializes a new instance of the T:System.InvalidCastException class with a specified error message.
InvalidCastException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the T:System.InvalidCastException class with serialized data.