I always thought that enough requirement that class should satisfy to be able to use Where()
with it is to implement IEnumerable
.
But today a friend of mine asked me a question, why he cannot apply Where()
to the object of SPUserCollection class (it is from Sharepoint). Since this class is derived from SPBaseCollection which implements IEnumerable
- I expected everything should be fine. But it is not.
Any ideas, why?