HashSet<T> data structure was introduced in the .NET Framework 3.5.
It is a very powerful data structure with no duplicate values. It comes with a bunch of built-in set functions. It inherits the
ICollection interface, so the elements inside a
HashSet can only be accessed through an enumerator.