Micah
Micah

Reputation: 116050

Is there a Collection that works like a Dictionary without the values?

I need a collection that works just like a Dictionary/Hashtable in a sense that it will only contain 1 instance of a given object at any time. A generic class would be preferable, but I'll take what I can get. Does this collection live somewhere in the framework?

Upvotes: 8

Views: 527

Answers (1)

Ilya Ryzhenkov
Ilya Ryzhenkov

Reputation: 12132

HashSet<T> from System.Core.dll

Upvotes: 17

Related Questions