Exemplo n.º 1
0
 public static IComparer <TElement> ThenByDescending <TElement, TKey>(this IComparer <TElement> primaryComparer, Func <TElement, TKey> keySelector, IComparer <TKey> keyComparer)
 {
     return(primaryComparer.Then(KeyComparer.Create(keySelector, keyComparer).Descending()));
 }
Exemplo n.º 2
0
 public static IComparer <TElement> ThenBy <TElement, TKey>(this IComparer <TElement> primaryComparer, Func <TElement, TKey> keySelector)
 {
     return(primaryComparer.Then(KeyComparer.Create(keySelector)));
 }