Esempio n. 1
0
 public MultipleValueDictionary(MultipleValueDictionary <TKey, TValue> multipleValueDictionary, IEqualityComparer <TKey> keyComparer, IEqualityComparer <TValue> valueComparer)
 {
     if (multipleValueDictionary == null)
     {
         throw new ArgumentNullException("multipleValueDictionary");
     }
     this.dictionary = new Dictionary <TKey, Set <TValue> >(keyComparer);
     foreach (KeyValuePair <TKey, Set <TValue> > keyValuePair in multipleValueDictionary)
     {
         this.dictionary.Add(keyValuePair.Key, new Set <TValue>(keyValuePair.Value));
     }
     this.valueCount    = multipleValueDictionary.ValueCount;
     this.valueComparer = valueComparer;
 }
Esempio n. 2
0
 public MultipleValueDictionary(MultipleValueDictionary <TKey, TValue> multipleValueDictionary) : this(multipleValueDictionary, null, null)
 {
 }