public Enumerator(TagAttributeCollection collection) { this.wrapped = ((CollectionBase)collection).GetEnumerator(); }
/// <summary> /// Initializes a new instance of the TagAttributeList class, containing elements /// copied from another instance of TagAttributeList /// </summary> /// <param name="items"> /// The TagAttributeList whose elements are to be added to the new TagAttributeList. /// </param> public TagAttributeCollection(TagAttributeCollection items) { this.AddRange(items); }
/// <summary> /// Adds the elements of another TagAttributeList to the end of this TagAttributeList. /// </summary> /// <param name="items"> /// The TagAttributeList whose elements are to be added to the end of this TagAttributeList. /// </param> public virtual void AddRange(TagAttributeCollection items) { foreach (TagAttribute item in items) { this.List.Add(item); } }