Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: CustomComparer<T> ThenBy<TBy>(Func<T, TBy>, Comparison<TBy>)

Declaration

public CustomComparer<T> ThenBy<TBy>(
    Func<T, TBy> selector,
    Comparison<TBy> comparison
)

Summary

Creates and returns a CustomComparer which uses the current comparer first, and if the current comparer says the items are equal, further compares items by comparing the results 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.
Comparison<TBy>comparison Comparison to use for comparing the results of the selector function.