internal static DictionaryImpl <TKey, TValue> CreateRef <TKey, TValue>(LockFreeConcurrentDictionary <TKey, TValue> topDict, int capacity) where TKey : class { var result = new DictionaryImplRef <TKey, TKey, TValue>(capacity, topDict); return(result); }
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; }
internal DictionaryImplBoxed(int capacity, LockFreeConcurrentDictionary <TKey, TValue> topDict) : base(capacity, topDict) { }
internal DictionaryImplULongNoComparer(int capacity, LockFreeConcurrentDictionary <ulong, TValue> topDict) : base(capacity, topDict) { }
internal DictionaryImplIntPtrNoComparer(int capacity, LockFreeConcurrentDictionary <IntPtr, TValue> topDict) : base(capacity, topDict) { }
internal DictionaryImplLong(int capacity, LockFreeConcurrentDictionary <long, TValue> topDict) : base(capacity, topDict) { }
internal DictionaryImplInt(int capacity, LockFreeConcurrentDictionary <int, TValue> topDict) : base(capacity, topDict) { }