In the prior post we saw that LINQ does not provide an equivalent to the method SymmetricExceptWith. How would you implement an equivalent using only LINQ methods?
Sets
- A set is an unordered collection containing no duplicates. Common operations on sets include intersection, difference, and union. C# provides at least two ways of performing these operations: one is using LINQ extensions; the other, is Hashset, a generic collection.