//-------------------------------------------------------------------------------------------------------------------- public static HashSetTS <T> ToHashSetTS <T>(this IEnumerable <T> source, HashSetTS <T> inPlace = null) { var ret = inPlace ?? new HashSetTS <T>(); if (source != null) { ret.AddFromSource(source.WhereNotNull()); } return(ret); }
//------------------------------------------------------------------------------------------------------------------------ public bool TryGetValue(TKey key, out HashSetTS <TValue> value) { lock (locker) return(InternalObject.TryGetValue(key, out value)); }
//------------------------------------------------------------------------------------------------------------------------ public void Add(TKey key, HashSetTS <TValue> value) { lock (locker) InternalObject.Add(key, value); }