public DescriptiveNameValueEnumerator(DescriptiveNameValueCollection mappings) { this.temp = ((IEnumerable)(mappings)); this.baseEnumerator = temp.GetEnumerator(); }
/// <summary> /// <para> /// Initializes a new instance of <see cref='Tools.Common.configuration.DescriptiveNameValueCollection'/> based on another <see cref='Tools.Common.configuration.DescriptiveNameValueCollection'/>. /// </para> /// </summary> /// <param name='value'> /// A <see cref='Tools.Common.configuration.DescriptiveNameValueCollection'/> from which the contents are copied /// </param> public DescriptiveNameValueCollection(DescriptiveNameValueCollection value) { this.AddRange(value); }
/// <summary> /// <para> /// Adds the contents of another <see cref='Tools.Common.configuration.DescriptiveNameValueCollection'/> to the end of the collection. /// </para> /// </summary> /// <param name='value'> /// A <see cref='Tools.Common.configuration.DescriptiveNameValueCollection'/> containing the objects to add to the collection. /// </param> /// <returns> /// <para>None.</para> /// </returns> /// <seealso cref='Tools.Common.configuration.DescriptiveNameValueCollection.Add'/> public void AddRange(DescriptiveNameValueCollection value) { for (int i = 0; (i < value.Count); i = (i + 1)) { DescriptiveNameValue nv = this.GetEntry(value[i].Name); if (nv!=null) { this[value[i].Name] = value[i]; int nn = 0; } else { this.Add(value[i]); } } }