PartialSortExtension Class

PartialSort extension.

Definition

Namespace: MoreLinq.Extensions
Assembly: MoreLinq (in MoreLinq.dll) Version: 3.4.0+b99a6a8cc504caf2d48372fe54a2f8116c59cd0c
C#
public static class PartialSortExtension
Inheritance
Object    PartialSortExtension

Methods

PartialSort<T>(IEnumerable<T>, Int32) Combines OrderBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>), where each element is its key, and Take<TSource>(IEnumerable<TSource>, Int32) in a single operation.
PartialSort<T>(IEnumerable<T>, Int32, OrderByDirection) Combines OrderBy<T, TKey>(IEnumerable<T>, Func<T, TKey>, IComparer<TKey>, OrderByDirection), where each element is its key, and Take<TSource>(IEnumerable<TSource>, Int32) in a single operation. An additional parameter specifies the direction of the sort
PartialSort<T>(IEnumerable<T>, Int32, IComparer<T>) Combines OrderBy<TSource, TKey>(IEnumerable<TSource>, Func<TSource, TKey>, IComparer<TKey>), where each element is its key, and Take<TSource>(IEnumerable<TSource>, Int32) in a single operation. An additional parameter specifies how the elements compare to each other.
PartialSort<T>(IEnumerable<T>, Int32, IComparer<T>, OrderByDirection) Combines OrderBy<T, TKey>(IEnumerable<T>, Func<T, TKey>, IComparer<TKey>, OrderByDirection), where each element is its key, and Take<TSource>(IEnumerable<TSource>, Int32) in a single operation. Additional parameters specify how the elements compare to each other and the direction of the sort.

See Also