Click or drag to resize
XmlSerializationReaderCreateInvalidCastException Method (Type, Object, String)
Creates an System.InvalidCastException that indicates that an explicit reference conversion failed.

Namespace: System.Xml.Serialization
Assembly: CSharpXamlForHtml5.System.Xml.dll (in CSharpXamlForHtml5.System.Xml.dll.dll) Version: 1.0.0.0
Syntax
C#
protected Exception CreateInvalidCastException(
	Type type,
	Object value,
	string id
)

Parameters

type
Type: SystemType
The System.Type that an object cannot be cast to. This type is incorporated into the exception message.
value
Type: SystemObject
The object that cannot be cast. This object is incorporated into the exception message.
id
Type: SystemString
A string identifier.

Return Value

Type: Exception
An System.InvalidCastException exception.
See Also