Beispiel #1
0
        public static PooledConcurrentSet <T> GetInstance(IEqualityComparer <T>?comparer = null)
        {
            var dictionary = PooledConcurrentDictionary <T, byte> .GetInstance(comparer);

            return(new PooledConcurrentSet <T>(dictionary));
        }
Beispiel #2
0
 private PooledConcurrentSet(PooledConcurrentDictionary <T, byte> dictionary)
 {
     _dictionary = dictionary;
 }