Determine the relative compliment of two IEnumerable<T> sets in .net
- by SFun28
Hi!
Is there an easy way to get the relative compliment of two sets? Perhaps using LINQ?
http://en.wikipedia.org/wiki/Complement_(set_theory)
I have to find the relative compliment of a set A relative to B. Both A and B are of type HashSet but I think the algorithm could be made more generation (IEnumerable or even ISet)?
I could use a solution in either vb.net or C#.