public bool MoveNext() { if (_head == null) { return(false); } _current = _current == null ? _head : _current.Next; return(_current != null); }
public void Reset() { _current = null; }
public ListEnumerator(List.Node head) { _head = head; _current = null; }