Exemple #1
0
        private IEnumerator Pop()
        {
            var iterator = _stack.iterator;

            _stack = _stack.next;
            return(iterator);
        }
Exemple #2
0
 public IteratorStack(IEnumerator iterator_, IteratorStack next_
                      )
 {
     iterator = iterator_;
     next     = next_;
 }
Exemple #3
0
 private void Push(IEnumerator currentIterator)
 {
     _stack = new IteratorStack(currentIterator, _stack);
 }
Exemple #4
0
 public IteratorStack(IEnumerator iterator_, IteratorStack next_
     )
 {
     iterator = iterator_;
     next = next_;
 }
Exemple #5
0
 private IEnumerator Pop()
 {
     var iterator = _stack.iterator;
     _stack = _stack.next;
     return iterator;
 }
Exemple #6
0
 private void Push(IEnumerator currentIterator)
 {
     _stack = new IteratorStack(currentIterator, _stack);
 }