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.
More Related Contents:
- Creating a blocking Queue in .NET?
- What’s the best way of implementing a thread-safe Dictionary?
- Bidirectional 1 to 1 Dictionary in C#
- .NET HashTable Vs Dictionary – Can the Dictionary be as fast?
- Collection versus List what should you use on your interfaces?
- Is there a built-in method to compare collections?
- ReadOnlyCollection or IEnumerable for exposing member collections?
- How to check if IEnumerable is null or empty?
- Is there anything like asynchronous BlockingCollection?
- What .NET collection provides the fastest search
- Does List guarantee insertion order?
- The opposite of Intersect()
- C# Sortable collection which allows duplicate keys
- Does the Enumerator of a Dictionary return key value pairs in the order they were added?
- Does C# have a way of giving me an immutable Dictionary?
- Thread safe collections in .NET
- Initial capacity of collection types, e.g. Dictionary, List
- C# List – Removing items while looping / iterating [duplicate]
- Returning ‘IList’ vs ‘ICollection’ vs ‘Collection’
- Is it possible to create some IGrouping object
- IEnumerable and order
- What’s Wrong with an ArrayList?
- How to get random values from array in C# [duplicate]
- How to check for file lock? [duplicate]
- Can I make XmlSerializer ignore the namespace on deserialization?
- Trying to use the C# SpellCheck class
- How to inject an attribute using a PostSharp attribute?
- Lock (Monitor) internal implementation in .NET
- Azure Blob Storage | AcquireLeaseAsync, synchronously wait until lock is released
- Are there any OK image recognition libraries for .NET?