예제 #1
0
 public bool MoveNext()
 {
     if (source.GetEnumerator().MoveNext())
     {
         current = fun(source.GetEnumerator().Current);
         return(true);
     }
     Reset();
     return(false);
 }
예제 #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);
        }