public bool MoveNext() { while (originalObject.MoveNext()) { Current = originalObject.Current; if (objectTest.Test(Current)) { return(true); } } return(false); }
private bool TryFindingNextPassing() { while (enumerator.MoveNext()) { if (objectTest.Test(enumerator.Current)) { return(true); } } // End of the original iterator, and no more matching elements return(false); }