Пример #1
0
		/// <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);
		}
Пример #2
0
		/// <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);
			}
		}
Пример #3
0
			/// <summary>
			/// 
			/// </summary>
			/// <param name="collection"></param>
			public Enumerator(SelectItemCollection collection)
			{
				this.wrapped = ((CollectionBase)collection).GetEnumerator();
			}