MetalamaAPI documentationAspect APIMetalama.​Framework.​Code.​ComparersIType­Comparer
Open sandboxFocus

ITypeComparer Interface

Extends System.Collections.Generic.IEqualityComparer<> of IType with the method Is(IType, IType, ConversionKind), which checks for type inheritance and not equality.

Namespace: Metalama.Framework.Code.Comparers
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public interface ITypeComparer

Methods

Name Description
Is(IType, IType, ConversionKind)

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

Is(IType, Type, ConversionKind)

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