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