Open sandboxFocus

Method IsConvertibleTo

IsConvertibleTo(IType, IType, ConversionKind)

Equivalent to the is operator in C#. Gets a value indicating whether the left IType is assignable to right IType.

Declaration
bool IsConvertibleTo(IType left, IType right, ConversionKind kind = ConversionKind.Default)
Parameters
Type Name Description
IType left
IType right
ConversionKind kind
Returns
Type Description
bool

IsConvertibleTo(IType, Type, ConversionKind)

Equivalent to the is operator in C#. Gets a value indicating whether the left Type is assignable to right Type.

Declaration
bool IsConvertibleTo(IType left, Type right, ConversionKind kind = ConversionKind.Default)
Parameters
Type Name Description
IType left
Type right
ConversionKind kind
Returns
Type Description
bool