Sets

  • image
    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.