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