HashSet<T>

The .NET collection of unique items that answers 'have I seen this one already?' in constant time.

In more detail

It keeps no order and uses each item's hash code to find it. Adding a duplicate is ignored, so spreading an array into a HashSet drops repeats.

Related terms

Taught in

References