Esempio n. 1
0
 public bool MoveNext()
 {
     if (source.GetEnumerator().MoveNext())
     {
         current = fun(source.GetEnumerator().Current);
         return(true);
     }
     Reset();
     return(false);
 }
Esempio n. 2
0
        public bool MoveNext()
        {
            if (source.GetEnumerator().MoveNext())
            {
                while (!cond(source.GetEnumerator().Current))
                {
                    source.GetEnumerator().MoveNext();
                }
                current = source.GetEnumerator().Current;

                return(true);
            }
            Reset();
            return(false);
        }