MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeType­ExtensionsIs
Open sandboxFocus

TypeExtensions.Is Method

Is(IType, IType, ConversionKind, TypeComparison)

Equivalent to the is operator in C#. Gets a value indicating whether the current type is assignable to another given type, given as an IType.

Declaration
public static bool Is(this IType left, IType right, ConversionKind kind, TypeComparison typeComparison)
Parameters
Type Name Description
IType left
IType right
ConversionKind kind
TypeComparison typeComparison
Returns
Type Description
System.Boolean

Is(IType, Type, ConversionKind, TypeComparison)

Equivalent to the is operator in C#. Gets a value indicating whether the current type is assignable to another given type, given as a reflection System.Type.

Declaration
public static bool Is(this IType left, Type right, ConversionKind kind, TypeComparison typeComparison)
Parameters
Type Name Description
IType left
System.Type right

Another type.

ConversionKind kind
TypeComparison typeComparison
Returns
Type Description
System.Boolean

Is(IType, SpecialType, ConversionKind)

Equivalent to the is operator in C#. Gets a value indicating whether the current type is assignable to another given type, given as a reflection System.Type.

Declaration
public static bool Is(this IType left, SpecialType right, ConversionKind kind)
Parameters
Type Name Description
IType left
SpecialType right

Another type.

ConversionKind kind
Returns
Type Description
System.Boolean