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?
Csharp
- 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.
- Access modifiers control whether a type (e.g., a class), or one of its properties can be used by other code. A public class, for instance, can be used by any code in any assembly. In this post we explore how the internal access modifier can provide a mechanism for enforcing boundaries in our architecture.