Le 22/03/2015 22:39, stepharo a écrit :
This is like the Iterator Design pattern and this is interesting.
Yes, usually in dotnet IQueryable is implemented by (or on top of) a
IEnumerable. It is one of the key elements of Linq that makes Linq very
user friendly for developers
Why don't you give a try to see how it grows?
I did a small try . it works, and there was not too much errors in my
suggestion . sometimes I surprise myself ... ;-)
I think it could be cool not only for collections, but with Glorp for
example (translate predicates to sql, some kind of "Linq for
smalltalk"). I think I'll dig a bit in that direction
May be time for some explorations with Glorp.
--
Regards,
Alain