コード例 #1
0
		/// <summary>
		/// Adds the elements of another TypeCollection to the end of this TypeCollection.
		/// </summary>
		/// <param name="items">
		/// The TypeCollection whose elements are to be added to the end of this TypeCollection.
		/// </param>
		public virtual void AddRange(TypeCollection items)
		{
			foreach (Type item in items)
			{
				this.List.Add(item);
			}
		}
コード例 #2
0
 /// <summary>
 /// Adds the elements of another TypeCollection to the end of this TypeCollection.
 /// </summary>
 /// <param name="items">
 /// The TypeCollection whose elements are to be added to the end of this TypeCollection.
 /// </param>
 public virtual void AddRange(TypeCollection items)
 {
     foreach (Type item in items)
     {
         this.List.Add(item);
     }
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the TypeCollection class, containing elements
 /// copied from another instance of TypeCollection
 /// </summary>
 /// <param name="items">
 /// The TypeCollection whose elements are to be added to the new TypeCollection.
 /// </param>
 public TypeCollection(TypeCollection items)
 {
     this.AddRange(items);
 }
コード例 #4
0
 public Enumerator(TypeCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the TypeCollection class, containing elements
 /// copied from another instance of TypeCollection
 /// </summary>
 /// <param name="items">
 /// The TypeCollection whose elements are to be added to the new TypeCollection.
 /// </param>
 public TypeCollection(TypeCollection items)
 {
     this.AddRange(items);
 }
コード例 #6
0
 public Enumerator(TypeCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }