18 using System.Collections;
19 using System.Collections.Generic;
29 private readonly IEnumerator<T> _enumerator;
30 private readonly Func<T, bool> _filter;
39 _enumerator = enumerator;
43 #region Implementation of IDisposable
50 _enumerator.Dispose();
55 #region Implementation of IEnumerator
63 while (_enumerator.MoveNext())
65 if (_filter(_enumerator.Current))
86 get {
return _enumerator.Current; }
89 object IEnumerator.Current
91 get {
return _enumerator.Current; }