/// <summary> /// Initializes a new instance of <see cref='BusEnumerator'/>. /// </summary> public BusEnumerator(BusCollection mappings) { this.temp = ((IEnumerable)(mappings)); this.baseEnumerator = temp.GetEnumerator(); }
/// <summary> /// Initializes a new instance of <see cref='BusCollection'/> based on another <see cref='BusCollection'/>. /// </summary> /// <param name='val'> /// A <see cref='BusCollection'/> from which the contents are copied /// </param> public BusCollection(BusCollection val) { this.AddRange(val); }
/// <summary> /// Adds the contents of another <see cref='BusCollection'/> to the end of the collection. /// </summary> /// <param name='val'> /// A <see cref='BusCollection'/> containing the objects to add to the collection. /// </param> /// <seealso cref='BusCollection.Add'/> public void AddRange(BusCollection val) { for (int i = 0; i < val.Count; i++) { this.Add(val[i]); } }