SynSoft .NET Libraries (release 3rd July 2003)

TypeCastException Constructor (Type, Type, String)

Constructs from the from and to types, and a specific reason for the failure.

[Visual Basic]
Overloads Public Sub New( _
   ByVal from As Type, _
   ByVal to As Type, _
   ByVal reason As String _
)
[C#]
public TypeCastException(
   Type from,
   Type to,
   string reason
);

Parameters

from
The type from which casting was attempted
to
The type to which casting was attempted
reason
The reason that the cast failed

See Also

TypeCastException Class | TypeCastException Members | SynSoft.Conversion Namespace | TypeCastException Constructor Overload List