示例#1
0
 private SortQuery(SortQuery other) : base(other)
 {
     this.results  = new List <SortKey>(other.results);
     this.comparer = other.comparer.Clone();
     this.qyInput  = Clone(other.qyInput);
     count         = 0;
 }
示例#2
0
 private SortQuery(SortQuery other) : base(other)
 {
     _results  = new List <SortKey>(other._results);
     _comparer = other._comparer.Clone();
     _qyInput  = Clone(other._qyInput);
     count     = 0;
 }
 public SortQuery(Query qyInput)
 {
     this.results  = new List <SortKey>();
     this.comparer = new XPathSortComparer();
     this.qyInput  = qyInput;
     base.count    = 0;
 }
示例#4
0
 public SortQuery(Query qyInput)
 {
     Debug.Assert(qyInput != null, "Sort Query needs an input query tree to work on");
     _results  = new List <SortKey>();
     _comparer = new XPathSortComparer();
     _qyInput  = qyInput;
     count     = 0;
 }
示例#5
0
        internal XPathSortComparer Clone()
        {
            XPathSortComparer clone = new XPathSortComparer(_numSorts);

            for (int i = 0; i < _numSorts; i++)
            {
                clone._comparers[i]   = _comparers[i];
                clone._expressions[i] = (Query)_expressions[i].Clone(); // Expressions should be cloned because Query should be cloned
            }
            clone._numSorts = _numSorts;
            return(clone);
        }
示例#6
0
        internal XPathSortComparer Clone()
        {
            XPathSortComparer clone = new XPathSortComparer(this.numSorts);

            for (int i = 0; i < this.numSorts; i++)
            {
                clone.comparers[i]   = this.comparers[i];
                clone.expressions[i] = (Query)this.expressions[i].Clone(); // Expressions should be cloned because Query should be cloned
            }
            clone.numSorts = this.numSorts;
            return(clone);
        }
示例#7
0
        internal XPathSortComparer Clone()
        {
            XPathSortComparer comparer = new XPathSortComparer(this.numSorts);

            for (int i = 0; i < this.numSorts; i++)
            {
                comparer.comparers[i]   = this.comparers[i];
                comparer.expressions[i] = (Query)this.expressions[i].Clone();
            }
            comparer.numSorts = this.numSorts;
            return(comparer);
        }