public LookupDictionary(IDictionary <TKey, TValue> dictionary, IEqualityComparer <TKey> comparer) { _lookup = new EntityLookup <TKey, TValue>(comparer, dictionary.Count + 1); foreach (var pair in dictionary) { _lookup.Add(pair.Key, pair.Value); } }
public void Add(TKey key, TValue value) { _lookup.Add(key, value); }