As a part of the infrastructure introduced in .NET 3.5 to support the various flavours of LINQ, there are a whole heap
of generic extension methods that are available whenever you have IEnumerable<T>.
Two that I’ve found useful recently are Intersect() and Except() - both of these work to filter values out of the
sequence.
A couple of examples are the best way to understand them:
If you haven’t already, check out the members of
Enumerable on MSDN - well worth the
effort.
Comments
blog comments powered by Disqus