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