Possible Duplicate:
Is there a “Set” data structure in .Net?
Duplicate: this is a duplicate of "Is there a “Set” data structure in .Net?". Please close it as a duplicate and address any further answers to the earlier question.
Is there a generic collection analogous to the STL set<T>
template in the .NET framework?
If not, how would you implement a non-ordered collection of unique strings? I suppose I could use Dictionary<string, int>
and just use the keys, but that feels kind of smelly.
EDIT: sorry, I should have specified that this is for .NET 2.0