Пример #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 void AddRange(TypeCollection items)
 {
     foreach (Type item in items)
     {
         List.Add(item);
     }
 }
Пример #2
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)
 {
     AddRange(items);
 }
Пример #3
0
 public Enumerator(TypeCollection collection)
 {
     wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }