Exemple #1
0
            public bool MoveNext()
            {
                bool moveNext = _source.MoveNext();

                if (moveNext)
                {
                    if (current.Index == -1)
                    {
                        current = new ItemIndexPair <T>(0, _source.Current);
                    }
                    else
                    {
                        current = current.Next(_source.Current);
                    }
                }
                return(moveNext);
            }
Exemple #2
0
 public Enumerator(IEnumerator <T> source)
 {
     _source = source;
     current = new ItemIndexPair <T>(-1, default(T));
 }