Ejemplo n.º 1
0
 private TwoWayDictionary(IDictionary <TKey, TValue> dict, TwoWayDictionary <TValue, TKey> inverse)
 {
     this.dict    = Conditions.CheckNotNull(dict, "dict");
     this.inverse = inverse;
 }
Ejemplo n.º 2
0
 public TwoWayDictionary(IDictionary <TKey, TValue> forwards, IDictionary <TValue, TKey> backwards)
 {
     dict    = Conditions.CheckNotNull(forwards, "forwards");
     inverse = new TwoWayDictionary <TValue, TKey>(backwards, this);
 }