protected DictionaryImpl(int capacity, DictionaryImpl <TKey, TKeyStore, TValue> other) { capacity = AlignToPowerOfTwo(capacity); this._entries = new Entry[capacity]; this._size = other._size; this._topDict = other._topDict; this._keyComparer = other._keyComparer; }
internal DictionaryImpl(int capacity, LockFreeConcurrentDictionary <TKey, TValue> topDict) { capacity = Math.Max(capacity, MIN_SIZE); capacity = AlignToPowerOfTwo(capacity); this._entries = new Entry[capacity]; this._size = new Counter32(); this._topDict = topDict; }