Example #1
0
 public bool MoveNext()
 {
     if (_current == null)
     {
         _current = _outer._first;
         return(true);
     }
     else if (_current?.next != null)
     {
         _current = _current.next;
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 public void Reset()
 {
     _current = _outer._first;
 }
Example #3
0
 public void Dispose()
 {
     _current = null;
     _outer   = null;
 }
Example #4
0
 public Enumerator(LLStack <U> outer)
 {
     _outer   = outer;
     _current = null;
 }