Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: CustomEqualityComparer<T> By(Func<T, string>, bool)

Declaration

public static CustomEqualityComparer<T> By(
    Func<T, string> selector,
    bool ignoreCase
)

Summary

Creates and returns an equality comparer that compares the equality of objects by comparing the equality of the result of a string selector function.

Parameters

Func<T, string>selector Function selecting the actual string value to be compared.
boolignoreCase If false, an invariant culture string comparison is used. Otherwise, an ordinal no-case comparison (suitable for filenames etc).