/// <summary> /// Copy all items from source onto this instance. /// NOTE: it is assumed that this instance's Comparer is compatible with source's. /// </summary> /// <param name="source"></param> public void Copy(ISortedDictionary <TKey, TValue> source) { Btree.Copy(((SortedDictionary <TKey, TValue>)source).Btree); }
/// <summary> /// Implement to copy items from source onto this instance. /// </summary> /// <param name="source"></param> public void Copy(ISortedDictionary <TKey, TValue> source) { Locker.Lock(); Btree.Copy(((SortedDictionary <TKey, TValue>)source).Btree); Locker.Unlock(); }