Exemple #1
0
        //----------------------------------------------------------------------------------------------------------------------------------------------
        public static ListTS <T> ToListTS <T>(this IEnumerable <T> source, ListTS <T> inPlace = null)
        {
            var ret = inPlace ?? new ListTS <T>();

            if (source != null)
            {
                foreach (var entry in source)
                {
                    ret.Add(entry);
                }
            }
            return(ret);
        }
Exemple #2
0
 //------------------------------------------------------------------------------------------------------------------------
 public bool TryGetValue(TKey key, out ListTS <TValue> value)
 {
     lock (locker)
         return(InternalObject.TryGetValue(key, out value));
 }
Exemple #3
0
 //------------------------------------------------------------------------------------------------------------------------
 public void Add(TKey key, ListTS <TValue> value)
 {
     lock (locker)
         InternalObject.Add(key, value);
 }