Exemplo n.º 1
0
        public _Dictionary(_IDictionary <TKey, TValue> dictionary, IEqualityComparer <TKey> comparer) :
            this(dictionary != null ? dictionary.Count : 0, comparer)
        {
            if (dictionary == null)
            {
                throw new ArgumentNullException();
            }

            foreach (KeyValuePair <TKey, TValue> pair in dictionary)
            {
                Add(pair.Key, pair.Value);
            }
        }
Exemplo n.º 2
0
 public _Dictionary(_IDictionary <TKey, TValue> dictionary) : this(dictionary, null)
 {
 }