HashSet<T>
noun
say it: “HASH-set” /ˈhæʃsɛt/
A C# collection that keeps only unique values and quickly says whether one is in it.
What is HashSet<T> in C#?
HashSet<T> — An unordered collection that keeps only unique values.
class TagCollection
{
HashSet<string> tags = new();
}
In a sentence
- “I put the tags in a HashSet<string>, so adding "sci-fi" twice keeps one.”
Level: Freelancer · More C# terms at this level
Updated