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