Exemplo n.º 1
0
        public override SortContext <TElement> CreateContext(SortContext <TElement> current)
        {
            SortContext <TElement> sortContext = new SortSequenceContext <TElement, TKey>(this.selector, this.comparer, this.direction, current);

            if (this.parent != null)
            {
                return(this.parent.CreateContext(sortContext));
            }
            return(sortContext);
        }
Exemplo n.º 2
0
        public override SortContext <TElement> CreateContext(SortContext <TElement> current)
        {
            SortContext <TElement> context = new SortSequenceContext <TElement, TKey> (selector, comparer, direction, current);

            if (parent != null)
            {
                return(parent.CreateContext(context));
            }

            return(context);
        }