Remove items from IEnumerable
I don’t see how the first version would compile, and the second version won’t do anything unless you use the result. It doesn’t remove anything from the existing collection – indeed, there may not even be an in-memory collection backing it. It just returns a sequence which, when iterated over, will return the appropriate values. … Read more