Click or drag to resize

PartialSortExtension Class

PartialSort extension.
Inheritance Hierarchy
System.Object
  MoreLinq.Extensions.PartialSortExtension

Namespace:  MoreLinq.Extensions
Assembly:  MoreLinq (in MoreLinq.dll) Version: 3.3.1+b77df70598ab84c28cd43dcf74594024b6d575e1
Syntax
public static class PartialSortExtension
Methods
  NameDescription
Public methodStatic memberPartialSort<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.
Public methodStatic memberPartialSort<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
Public methodStatic memberPartialSort<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.
Public methodStatic memberPartialSort<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.
Top
See Also