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