InvalidCastException Constructor (SerializationInfo, StreamingContext)
Initializes a new instance of the InvalidCastException class with serialized data.
Assembly: mscorlib (in mscorlib.dll)
protected InvalidCastException( SerializationInfo info, StreamingContext context )
This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization.