ConcurrentHashSet 1.0.2

A thread-safe hash-based set

Install-Package ConcurrentHashSet -Version 1.0.2
dotnet add package ConcurrentHashSet --version 1.0.2
paket add ConcurrentHashSet --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ConcurrentHashSet

A ConcurrentHashSet implementation based on .NET's ConcurrentDictionary

This implementation supports basic operations per item without HashSet's set operations as they make less sense in concurrent scenarios IMO:

var concurrentHashSet = new ConcurrentHashSet<string>(
    new[]
    {
        "hamster",
        "HAMster",
        "bar",
    },
    StringComparer.OrdinalIgnoreCase);

concurrentHashSet.TryRemove("foo");

if (concurrentHashSet.Contains("BAR"))
{
    Console.WriteLine(concurrentHashSet.Count);
}

You can get it from NuGet here.

ConcurrentHashSet

A ConcurrentHashSet implementation based on .NET's ConcurrentDictionary

This implementation supports basic operations per item without HashSet's set operations as they make less sense in concurrent scenarios IMO:

var concurrentHashSet = new ConcurrentHashSet<string>(
    new[]
    {
        "hamster",
        "HAMster",
        "bar",
    },
    StringComparer.OrdinalIgnoreCase);

concurrentHashSet.TryRemove("foo");

if (concurrentHashSet.Contains("BAR"))
{
    Console.WriteLine(concurrentHashSet.Count);
}

You can get it from NuGet here.

Version History

Version Downloads Last updated
1.0.2 46,869 7/17/2017
1.0.1 2,342 4/17/2017
1.0.0 224 4/1/2017
1.0.0-beta1 160 3/25/2017
0.3.1 10,565 9/4/2016
0.3.0 188 7/9/2016
0.3.0-beta2 141 7/2/2016
0.3.0-beta1 297 7/2/2016
0.2.0 188 6/11/2016
0.1.2 165 6/11/2016
0.1.1 166 6/11/2016
0.1.0 242 6/11/2016