XComparer Class |
Namespace: Linq.Extras
The XComparer type exposes the following members.
| Name | Description | |
|---|---|---|
| ByT, TKey |
Creates a comparer with ascending order based on the specified comparison key and key comparer.
| |
| ByDescendingT, TKey |
Creates a comparer with descending order based on the specified comparison key and key comparer.
| |
| ChainWithT |
Chains two comparers. The resulting comparer will first compare items using comparer,
and if it's not enough to decide which is greater, it will use nextComparer to decide.
| |
| FromComparisonT |
Creates a comparer that uses the specified ComparisonT delegate to compare objects.
| |
| MaxT |
Returns the greater of two items according to comparer.
| |
| MinT |
Returns the lesser of two items according to comparer.
| |
| ReverseT |
Returns a comparer that has the reverse logic of the original comparer.
| |
| ThenByT, TKey |
Chains a secondary comparer with ascending order based on the specified key to an existing comparer.
| |
| ThenByDescendingT, TKey |
Chains a secondary comparer with descending order based on the specified key to an existing comparer.
|