public bool MoveNext() { if (_current == null) { if (_head == null) { return(false); } _current = _head; return(true); } else { if (_current.Next == null) { return(false); } _current = _current.Next; return(true); } }
public void Reset() { _current = null; }
public TwoWayListEnumerator(TwoWayList.TwoWayListNode head) { _head = head; }