public WeakKeyWeakValueDictionary(int capacity, IEqualityComparer <TKey> comparer)
 {
     this.comparer   = new WeakKeyComparer <TKey>(comparer);
     this.dictionary = new Dictionary <object, WeakReference <TValue> >(capacity, this.comparer);
 }
Exemplo n.º 2
0
 public WeakKeyDictionary(int capacity, IEqualityComparer <TKey> comparer)
 {
     this.comparer   = new WeakKeyComparer <TKey>(comparer);
     this.dictionary = new Dictionary <object, TValue>(capacity, this.comparer);
 }