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