Set generic collection? (Java HashSet)

I am looking for a collection that provides the basic java HashSet collection It seems that the System.Collections.Generic does not provide such elementary collection. Is there a reason to omit such classes in .Net 2.0

Thanks in advance,
Joannes


Answer this question

Set generic collection? (Java HashSet)

  • eyekron

    Basically just allocation of resources -- if you would like to request a feature, please go ahead and do that on the MSDN Product Feedback Center so that we can keep track of it for our next release.

    -Shawn



  • pgyb

    I was aware of the PowerCollection (and C5 package too). Basically, there is nowadays a strong consensus on what is expected from a simple generic collection package, yet MS does not follow that path (at least .Net 2.0 does not). Additionally since all the required source code have been part of CS textbooks for one decade (maybe two), reimplementation is easy anyway.

    Therefore I was wondering what was the reason being the MS choice not to include set, bag, etc... collections in System.Collections.Generic.

    Joannes

  • Will Barns

    In the System.Collections.Generic namespace there is the Dictionary<K, V> class, which provides similar functionality.  If you're looking for a Set class, then you might want to check out PowerCollections.

    -Shawn



  • Set generic collection? (Java HashSet)