Пример #1
0
        public bool MoveNext()
        {
            if (current.NextNode == null)
            {
                return(false);
            }

            current = current.NextNode;
            return(true);
        }
Пример #2
0
 public void Reset()
 => current = new CustomListNode <T>
 {
     NextNode = rootNode
 };
Пример #3
0
 public CustomIterator(CustomList <T> list, CustomListNode <T> rootNode)
 {
     this.list     = list;
     this.rootNode = rootNode;
     Reset();
 }