C# Developers' Journal (original) (raw)

4:47p

fast set I need a collection with the following properties: O(1) bool Contains(object), O(1) Add(object). Well, I can live with O(logN) Add(object) if there is no O(1). Does framework provide anything like it? (I guess I could use Hashtable with my object as a key, but I'd prefer smth more lightweight). Thanks.

(41 Comments |Comment on this)