Example #1
0
        public bool Next()
        {
            if (_scan2.Next())
            {
                return(true);
            }

            _scan2.BeforeFirst();
            return(_scan2.Next() && _scan1.Next());
        }
Example #2
0
        public bool Next()
        {
            while (_scan.Next())
            {
                if (_predicate.IsSatisfied(_scan))
                {
                    return(true);
                }
            }

            return(false);
        }
Example #3
0
 public void BeforeFirst()
 {
     _scan1.BeforeFirst();
     _scan1.Next();
     _scan2.BeforeFirst();
 }
Example #4
0
 public bool Next() => _scan.Next();