예제 #1
0
        /// <summary>
        /// Creates a new object that is a copy of the current instance.
        /// </summary>
        /// <returns>
        /// A new object that is a copy of this instance.
        /// </returns>
        /// <filterpriority>2</filterpriority>
        public object Clone()
        {
            Locker.Lock();
            var r = new ConcurrentSortedDictionary <TKey, TValue>(this);

            Locker.Unlock();
            return(r);
        }
예제 #2
0
 internal ConcurrentSortedDictionary(ConcurrentSortedDictionary <TKey, TValue> source)
 {
     _btree       = (BTreeAlgorithm <TKey, TValue>)source.Btree.Clone();
     _currentItem = source._currentItem;
     _sortOrder   = source.SortOrder;
 }