HashSet<T>

An unordered collection that keeps only unique values.

What is HashSet<T> in C#?

HashSet<T> — An unordered collection that keeps only unique values.

class TagCollection
{
    HashSet<string> tags = new();
}

Level: Freelancer · More C# terms at this level

Updated