Omar Kooheji Omar Kooheji - 6 months ago 91
C# Question

C# Set collection?

Does anyone know if there is a good equivalent to Java's

collection in C#? I know that you can somewhat mimic a set using a
or a
by populating but ignoring the values, but that's not a very elegant way.


If you're using .NET 3.5, you can use HashSet<T>. It's true that .NET doesn't cater for sets as well as Java does though.

The Wintellect PowerCollections may help too.