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