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
Constructors
FuncEqualityComparer(EqualityComparison<T?>)
Creates a new instance.
public FuncEqualityComparer(EqualityComparison<T?> comparison)
Parameters
comparisonEqualityComparison<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
xTThe first object of type
Tto compare.yTThe second object of type
Tto compare.
Returns
GetHashCode(T)
Returns a hash code for the specified object.
public int GetHashCode(T obj)
Parameters
objTThe object for which a hash code is to be returned.
Returns
- int
A hash code for the specified object.
Exceptions
- ArgumentNullException
The type of
objis a reference type andobjis null.