Goals of this chapter:
• Define the two options for working with set data using LINQ.
• Introduce the HashSet type and how this relates to LINQ.
• Introduce the LINQ standard query operators that relate to working with set data.
There are two ways of applying set-based functions over data sequences using LINQ. This chapter explores the merits of both options and explains when and why to use one method over another.
Set operations allow various functions to compare elements in collections (and in some cases, the same collection) against each other in order to determine overlapping and unique elements within a collection.
Framework libraries for set operations were missing in the .NET Framework 1, ...