private IEnumerator Pop() { var iterator = _stack.iterator; _stack = _stack.next; return(iterator); }
public IteratorStack(IEnumerator iterator_, IteratorStack next_ ) { iterator = iterator_; next = next_; }
private void Push(IEnumerator currentIterator) { _stack = new IteratorStack(currentIterator, _stack); }
private IEnumerator Pop() { var iterator = _stack.iterator; _stack = _stack.next; return iterator; }