Пример #1
0
 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;
 }
Пример #2
0
 private QuickSort(IEnumerable <TElement> source, SortContext <TElement> context)
 {
     this.elements = source.ToArray();
     this.indexes  = CreateIndexes(elements.Length);
     this.context  = context;
 }
Пример #3
0
 protected SortContext(SortDirection direction, SortContext <TElement> child_context)
 {
     this.direction     = direction;
     this.child_context = child_context;
 }
Пример #4
0
 public abstract SortContext <TElement> CreateContext(SortContext <TElement> current);
Пример #5
0
 private QuickSort(IEnumerable <TElement> source, SortContext <TElement> context)
 {
     _elements = Enumerable.ToArray(source);
     _indexes  = CreateIndexes(_elements.Length);
     _context  = context;
 }