Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: CustomEqualityComparer<T> By<TBy>(Func<T, TBy>, IEqualityComparer<TBy>)

Declaration

public static CustomEqualityComparer<T> By<TBy>(
    Func<T, TBy> selector,
    IEqualityComparer<TBy> comparer
)

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

TByThis type parameter is not documented.

Parameters

Func<T, TBy>selector Function selecting the actual value to be compared.
IEqualityComparer<TBy>comparer Comparer to use for comparing the results of the selector function.