public TagEnumerator(TagCollection mappings) { this.temp = ((IEnumerable)(mappings)); this.baseEnumerator = temp.GetEnumerator(); }
/// <summary> /// <para> /// Initializes a new instance of <see cref='.TagCollection'/> based on another <see cref='.TagCollection'/>. /// </para> /// </summary> /// <param name='value'> /// A <see cref='.TagCollection'/> from which the contents are copied /// </param> public TagCollection(TagCollection value) { this.AddRange(value); }
/// <summary> /// <para> /// Adds the contents of another <see cref='.TagCollection'/> to the end of the collection. /// </para> /// </summary> /// <param name='value'> /// A <see cref='.TagCollection'/> containing the objects to add to the collection. /// </param> /// <returns> /// <para>None.</para> /// </returns> /// <seealso cref='.TagCollection.Add'/> public void AddRange(TagCollection value) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add(value[i]); } }