Beispiel #1
0
 public bool MoveNext()
 {
     Current = Current.GetPeek().FirstOrDefault();
     return(Current != null);
 }
Beispiel #2
0
 public void Reset()
 {
     Current = null;
     _enumerator.Reset();
 }
Beispiel #3
0
            public PeekWalker(IEnumerator <T> enumerator)
            {
                _enumerator = enumerator;

                Current = new PeekElement <T>(default(T), new Lazy <PeekElement <T> >(GetNextPeek));
            }