Esempio n. 1
0
 public BiDictionary(Dictionary <T1, T2> keysToValue)
 {
     KeyToValue = keysToValue;
     foreach (var keyValue in keysToValue)
     {
         ValueToKey.Add(keyValue.Value, keyValue.Key);
     }
 }
Esempio n. 2
0
 public void Add(T1 key, T2 value)
 {
     KeyToValue.Add(key, value);
     ValueToKey.Add(value, key);
 }