110,568
社区成员
发帖
与我相关
我的任务
分享
interface IIterator<T>
{
bool HasNext();
T Next();
}
interface IFilter<T>
{
bool Pass(T t);
}
class FilteredIterator<T> where T:IIterator<T>,IFilter<T>
{
T _value;
public FilteredIterator(T value)
{
_value = value;
}
}