Class LambdaEqualityComparer<T>
- Namespace
- Lime
- Assembly
- Lime.dll
public class LambdaEqualityComparer<T> : IEqualityComparer<T>
Type Parameters
T
- Inheritance
-
LambdaEqualityComparer<T>
- Implements
- Inherited Members
Constructors
LambdaEqualityComparer(Func<T, T, bool>)
public LambdaEqualityComparer(Func<T, T, bool> lambdaComparer)
Parameters
LambdaEqualityComparer(Func<T, T, bool>, Func<T, int>)
public LambdaEqualityComparer(Func<T, T, bool> lambdaComparer, Func<T, int> lambdaHash)
Parameters
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.