Edit

Share via


EqualityAdapter Class

Definition

EqualityAdapter class handles all equality comparisons that use an IEqualityComparer, IEqualityComparer<T> or a ComparisonAdapter.

public abstract class EqualityAdapter
type EqualityAdapter = class
Inheritance
EqualityAdapter

Constructors

EqualityAdapter()

Methods

AreEqual(Object, Object)
CanCompare(Object, Object)
For(IComparer)

Returns an EqualityAdapter that wraps an IComparer.

For(IEqualityComparer)

Returns an EqualityAdapter that wraps an IEqualityComparer.

For<T>(Comparison<T>)

Returns an EqualityAdapter that wraps a Comparison<T>.

For<T>(IComparer<T>)

Returns an EqualityAdapter that wraps an IComparer<T>.

For<T>(IEqualityComparer<T>)

Returns an EqualityAdapter that wraps an IEqualityComparer<T>.

Applies to