Open sandboxFocus

Namespace Metalama.Framework.Code.Comparers

Classes

RefEqualityComparer

An implementation of IEqualityComparer<T> for IRef that compares references based on RefComparison semantics.

RefEqualityComparer<T>

A strongly-typed implementation of IEqualityComparer<T> for IRef<T> that compares references based on RefComparison semantics.

Interfaces

ICompilationComparers

Exposes comparers of different characteristics. To get an instance of this interface, use the Comparers property.

IDeclarationComparer

An umbrella interface for an equality comparer of IDeclaration and IType. To get an instance of this interface, use the Default property.

IRefEqualityComparer

This interface exists to write assertions that a dictionary has been created with the proper comparer.

ITypeComparer

Extends IEqualityComparer<T> of IType with the method IsConvertibleTo(IType, IType, ConversionKind), which checks for type inheritance and not equality.

Enums

TypeComparison

Specifies which comparer should be used.