Beispiel #1
0
 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);
 }
Beispiel #2
0
 public Node(object val, LinkedList.Node previous, LinkedList.Node next)
 {
     this._value    = val;
     this._next     = next;
     this._previous = previous;
 }
Beispiel #3
0
 public void Reset()
 {
     this._current = this._ll._rootNode;
 }
Beispiel #4
0
 public LinkedListEnumerator(LinkedList ll)
 {
     this._ll      = ll;
     this._modId   = ll._modId;
     this._current = this._ll._rootNode;
 }