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