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