ConcurrentHashSet 1.3.0

.NET Standard 1.0 .NET Framework 4.6.1
Install-Package ConcurrentHashSet -Version 1.3.0
dotnet add package ConcurrentHashSet --version 1.3.0
<PackageReference Include="ConcurrentHashSet" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ConcurrentHashSet --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ConcurrentHashSet, 1.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ConcurrentHashSet as a Cake Addin
#addin nuget:?package=ConcurrentHashSet&version=1.3.0

// Install ConcurrentHashSet as a Cake Tool
#tool nuget:?package=ConcurrentHashSet&version=1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ConcurrentHashSet

NuGet NuGet license

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);
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.0 netstandard1.1 netstandard1.2 netstandard1.3 netstandard1.4 netstandard1.5 netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Universal Windows Platform uap uap10.0
Windows Phone wp8 wp81 wpa81
Windows Store netcore netcore45 netcore451
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETStandard 1.0

  • .NETStandard 2.0

    • No dependencies.

NuGet packages (34)

Showing the top 5 NuGet packages that depend on ConcurrentHashSet:

Package Downloads
WorkflowCore

Workflow Core is a light weight workflow engine targeting .NET Standard.

Shesha.Framework

Package Description

DSharpPlus.Interactivity The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

An addon that adds interactivity capabilities to commands.

Wyam.CodeAnalysis The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Wyam is a simple to use, highly modular, and extremely configurable static content generator. This library provides support for performing code analysis.

Statiq.Common The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Statiq is a configurable static content generation framework. This library provides a common set of abstractions and other classes to make writing extensions easier.

GitHub repositories (8)

Showing the top 5 popular GitHub repositories that depend on ConcurrentHashSet:

Repository Stars
danielgerlag/workflow-core
Lightweight workflow engine for .NET Standard
DSharpPlus/DSharpPlus
A .NET Standard library for making bots using the Discord API.
stratisproject/StratisBitcoinFullNode
Bitcoin full node in C#
ConcreteMC/Alex
A Minecraft client written in C# aimed at compatibility with MC:Java & MC:Bedrock
statiqdev/Statiq.Framework
A flexible and extensible static content generation framework for .NET.
Version Downloads Last updated
1.3.0 116,520 8/19/2021
1.2.0 19,261 6/22/2021
1.1.0 1,158,770 7/12/2019
1.0.2 347,864 7/17/2017
1.0.1 8,770 4/17/2017
1.0.0 1,310 4/1/2017
1.0.0-beta1 778 3/25/2017
0.3.1 33,806 9/4/2016
0.3.0 907 7/9/2016
0.3.0-beta2 743 7/2/2016
0.3.0-beta1 1,195 7/2/2016
0.2.0 1,356 6/11/2016
0.1.2 1,321 6/11/2016
0.1.1 1,290 6/11/2016
0.1.0 2,397 6/11/2016

Adds: Custom struct enumerator.