Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

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

Summary

Creates and returns a CustomComparer which compares items by comparing the results of a selector function.

Parameters

Func<T, string>selector Function selecting the 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).