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