using System.Collections.Generic; namespace Wabbajack.Common { public class ConcurrentHashSet where T : notnull { private Dictionary _inner; public ConcurrentHashSet() { _inner = new Dictionary(); } public ConcurrentHashSet(IEnumerable input) { _inner = new Dictionary(); foreach (var itm in input) Add(itm); } public bool Contains(T key) { return _inner.ContainsKey(key); } public void Add(T key) { _inner[key] = true; } } }