public SortSequenceContext(Func <TElement, TKey> selector, IComparer <TKey> comparer, SortDirection direction, SortContext <TElement> child_context) : base(direction, child_context) { this.selector = selector; this.comparer = comparer; }
private QuickSort(IEnumerable <TElement> source, SortContext <TElement> context) { this.elements = source.ToArray(); this.indexes = CreateIndexes(elements.Length); this.context = context; }
protected SortContext(SortDirection direction, SortContext <TElement> child_context) { this.direction = direction; this.child_context = child_context; }
public abstract SortContext <TElement> CreateContext(SortContext <TElement> current);
private QuickSort(IEnumerable <TElement> source, SortContext <TElement> context) { _elements = Enumerable.ToArray(source); _indexes = CreateIndexes(_elements.Length); _context = context; }