Class FuncEqualityComparer<T>
- Namespace
- ChartTools.Extensions
- Assembly
- ChartTools.dll
Delegate-based IEqualityComparer<T>
public class FuncEqualityComparer<T> : IEqualityComparer<T>
Type Parameters
T
- Inheritance
-
FuncEqualityComparer<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
FuncEqualityComparer(EqualityComparison<T?>)
Creates a new instance.
public FuncEqualityComparer(EqualityComparison<T?> comparison)
Parameters
comparison
EqualityComparison<T>Method used to compare two objects
Properties
Comparison
Method used to compare two objects
public EqualityComparison<T?> Comparison { get; }
Property Value
Methods
Equals(T?, T?)
Determines whether the specified objects are equal.
public bool Equals(T? x, T? y)
Parameters
x
TThe first object of type
T
to compare.y
TThe second object of type
T
to compare.
Returns
GetHashCode(T)
Returns a hash code for the specified object.
public int GetHashCode(T obj)
Parameters
obj
TThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
obj
is a reference type andobj
is null.