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