示例#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)
        {
        }
示例#2
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 default equality comparer for the key type.
        /// </summary>
        /// <param name="dictionary">The dictionary.</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) : base(dictionary)
        {
        }                                                                                       // Dictionary