Declaration
public static CustomEqualityComparer<T> By<TBy>(
Func<T, TBy> selector,
Func<TBy, TBy, bool> comparison = null,
Func<TBy, int> getHashCode = null
)
Summary
Creates and returns an equality comparer that compares the equality of objects by comparing the equality of
the result of a selector function.
Generic type parameters
TBy | This type parameter is not documented. |
Parameters
Func<T, TBy> | selector |
Function selecting the actual value to be compared. |
Func<TBy, TBy, bool> | comparison |
Function used to compare values for equality. If null, will use IEquatable if implemented, or the object's
Equals override. |
Func<TBy, int> | getHashCode |
Function used to compute hash codes. If null, will use IEquatable if implemented, or the object's GetHashCode
override. |