Creates an InvalidCastException that indicates that an explicit reference conversion failed.
- type
- The Type that an object cannot be cast to. This type is incorporated into the exception message.
- value
- The object that cannot be cast. This object is incorporated into the exception message.
- id
- A string identifier.
An InvalidCastException exception.
The protected members of System.Xml.Serialization.XmlSerializationReader are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.