Ejemplo n.º 1
0
 public override bool Next()
 {
     while (this._currentIndex >= 0)
     {
         RangeVariable.RangeIteratorMain main = this._rangeIterators[this._currentIndex];
         if (main.Next())
         {
             if (this._currentIndex >= (this._rangeIterators.Length - 1))
             {
                 base.CurrentRow  = this._rangeIterators[this._currentIndex].CurrentRow;
                 base.CurrentData = base.CurrentRow.RowData;
                 return(true);
             }
             this._currentIndex++;
         }
         else
         {
             main.Reset();
             this._currentIndex--;
         }
     }
     base.CurrentData = this._rangeIterators[this._rangeIterators.Length - 1].RangeVar._emptyData;
     base.CurrentRow  = null;
     for (int i = 0; i < this._rangeIterators.Length; i++)
     {
         this._rangeIterators[i].Reset();
     }
     return(false);
 }
Ejemplo n.º 2
0
 public RangeIteratorRight(Session session, RangeVariable rangeVar, RangeVariable.RangeIteratorMain main) : base(session, rangeVar)
 {
     base.IsFullIterator = true;
 }