示例#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
 internal OrderedSequence(IEnumerable <TElement> source, Func <TElement, TKey> key_selector, IComparer <TKey> comparer, SortDirection direction)
     : base(source)
 {
     this.selector  = key_selector;
     this.comparer  = comparer ?? Comparer <TKey> .Default;
     this.direction = direction;
 }
示例#3
0
 internal OrderedSequence(OrderedEnumerable <TElement> parent, IEnumerable <TElement> source, Func <TElement, TKey> keySelector, IComparer <TKey> comparer, SortDirection direction)
     : this(source, keySelector, comparer, direction)
 {
     this.parent = parent;
 }
 protected SortContext(SortDirection direction, SortContext <TElement> child_context)
 {
     this.direction     = direction;
     this.child_context = child_context;
 }