Class AnonymousEqualityComparer<T>
Compares instances of a type using the given equality function.
Inheritance
AnonymousEqualityComparer<T>
Assembly: Recore.dll
Syntax
public sealed class AnonymousEqualityComparer<T> : IEqualityComparer<T>
Type Parameters
Constructors
|
Improve this Doc
View Source
AnonymousEqualityComparer(Func<T, T, Boolean>, Func<T, Int32>)
Declaration
public AnonymousEqualityComparer(Func<T, T, bool> equals, Func<T, int> getHashCode)
Parameters
Methods
|
Improve this Doc
View Source
Equals(T, T)
Invokes the given comparison function on two objects.
Declaration
public bool Equals(T x, T y)
Parameters
Type |
Name |
Description |
T |
x |
|
T |
y |
|
Returns
|
Improve this Doc
View Source
GetHashCode(T)
Invokes the given hashing function on an object.
Declaration
public int GetHashCode(T obj)
Parameters
Type |
Name |
Description |
T |
obj |
|
Returns
Implements
Extension Methods