Example #1
0
            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);
                }
            }
Example #2
0
 public void Reset()
 {
     _current = null;
 }
Example #3
0
 public TwoWayListEnumerator(TwoWayList.TwoWayListNode head)
 {
     _head = head;
 }