Ejemplo n.º 1
0
        }                                                    // Dictionary

        /// <summary>
        /// Initializes a new instance of the
        /// <see cref="Dictionary{TKey, TValue}"></see> class that contains elements copied from the specified <see cref="System.Collections.Generic.IDictionary{TKey, TValue}"></see> and uses the specified <see cref="System.Collections.Generic.IEqualityComparer{TKey}"></see>.
        /// </summary>
        /// <param name="dictionary">The dictionary.</param>
        /// <param name="comparer">The <see cref="System.Collections.Generic.IEqualityComparer{TKey}"></see> implementation to use when comparing values, or null to use the default <see cref="System.Collections.Generic.EqualityComparer{TKey}"></see> for the type of the key.</param>
        /// <exception cref="System.ArgumentException">dictionarytable contains one or more duplicate values.</exception>
        /// <exception cref="System.ArgumentNullException">dictionarytable is null.</exception>
        public Dictionary(Generics.IDictionary <TKey, TValue> dictionary, Generics.IEqualityComparer <TKey> comparer) : base(dictionary, comparer)
        {
        }
Ejemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="Dictionary{TKey, TValue}"></see> class that is empty, has the specified initial capacity, and uses the specified <see cref="System.Collections.Generic.IEqualityComparer{TKey}"></see>.</summary>
 /// <param name="capacity">The initial number of elements that the <see cref="Dictionary{TKey, TValue}"></see> can contain.</param>
 /// <param name="comparer">The <see cref="System.Collections.Generic.IEqualityComparer{TKey}"></see> implementation to use when comparing values, or null to use the default <see cref="System.Collections.Generic.EqualityComparer{TKey}"></see> for the type of the key.</param>
 /// <exception cref="System.ArgumentOutOfRangeException">capacity is less than 0.</exception>
 public Dictionary(int capacity, Generics.IEqualityComparer <TKey> comparer) : base(capacity, comparer)
 {
 }
Ejemplo n.º 3
0
        }                                                                                       // Dictionary

        /// <summary>Initializes a new instance of the
        /// <see cref="Dictionary{TKey, TValue}"></see> class that is empty, has the default initial capacity, and uses the specified <see cref="System.Collections.Generic.IEqualityComparer{TKey}"></see>.</summary>
        /// <param name="comparer">The <see cref="System.Collections.Generic.IEqualityComparer{TKey}"></see> implementation to use when comparing values, or null to use the default <see cref="System.Collections.Generic.EqualityComparer{TKey}"></see> for the type of the key.</param>
        public Dictionary(Generics.IEqualityComparer <TKey> comparer) : base(comparer)
        {
        }                                                                                 // Dictionary