Esempio n. 1
0
        public T Next()
        {
            if (_first)
            {
                for (int i = 0; i < _count; ++i)
                {
                    _source.Next();
                }
                _first = false;
            }

            return(_source.Next());
        }
 public TResult Next()
 {
     while (true)
     {
         if (_source.Next() is TResult res)
         {
             return(res);
         }
     }
 }
Esempio n. 3
0
        public T Next()
        {
            if (!HasNext())
            {
                throw new InvalidOperationException();
            }

            ++_count;
            return(_source.Next());
        }
Esempio n. 4
0
        public T Next()
        {
            while (true)
            {
                T temp = _source.Next();

                if (_predicate(temp))
                {
                    return(temp);
                }
            }
        }
Esempio n. 5
0
 public TR Next() => _func(_yielderA.Next(), _yielderB.Next());
Esempio n. 6
0
 public TResult Next() => _fun(_source.Next());