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