Omar Kooheji Omar Kooheji - 1 year ago 176
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.

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download