public bool MoveNext() { if (this._modId != this._ll._modId) { throw new InvalidOperationException("LinkedList has been modified."); } this._current = this._current.NextNode; return(this._current != this._ll._rootNode); }
public Node(object val, LinkedList.Node previous, LinkedList.Node next) { this._value = val; this._next = next; this._previous = previous; }
public void Reset() { this._current = this._ll._rootNode; }
public LinkedListEnumerator(LinkedList ll) { this._ll = ll; this._modId = ll._modId; this._current = this._ll._rootNode; }