Equivalence class

Methods for working with IHasEquivalence.

public static class Equivalence

Public Members

name description
static AreEquivalent<T>(…) True if the objects are equivalent.
static AreSequencesEquivalent<T>(…) True if the sequences are equivalent.
static GetEqualityComparer<T>() Returns an equality comparer that calls IHasEquivalence.IsEquivalentTo.
static GetEqualityComparer<TDerived,TBase>() Returns an equality comparer that calls IHasEquivalence.IsEquivalentTo.
static GetEqualityComparerOrFallback<T>() Returns an equality comparer that calls IHasEquivalence.IsEquivalentTo.
static GetEqualityComparerOrFallback<T>(…) Returns an equality comparer that calls IHasEquivalence.IsEquivalentTo.
static SequenceEquivalent<T>(…) True if the sequences are equivalent.

See Also