Returns an equality comparer that calls IHasEquivalence.IsEquivalentTo.
public static IEqualityComparer<T> GetEqualityComparer<T>()
where T : IHasEquivalence<T>
parameter | description |
---|---|
T | The object type. |
The equality comparer.
Returns an equality comparer that calls IHasEquivalence.IsEquivalentTo.
public static IEqualityComparer<TDerived> GetEqualityComparer<TDerived, TBase>()
where TDerived : TBase, IHasEquivalence<TBase>
parameter | description |
---|---|
TDerived | The object type. |
TBase | The base type that implements IHasEquivalence. |
The equality comparer.