Example #1
0
        //--------------------------------------------------------------------------------------------------------------------
        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);
        }
Example #2
0
 //------------------------------------------------------------------------------------------------------------------------
 public bool TryGetValue(TKey key, out HashSetTS <TValue> value)
 {
     lock (locker)
         return(InternalObject.TryGetValue(key, out value));
 }
Example #3
0
 //------------------------------------------------------------------------------------------------------------------------
 public void Add(TKey key, HashSetTS <TValue> value)
 {
     lock (locker)
         InternalObject.Add(key, value);
 }