Inheritance: System.Collections.CollectionBase
Example #1
0
 /// <summary>
 ///   Initializes a new instance of <see cref='BusEnumerator'/>.
 /// </summary>
 public BusEnumerator(BusCollection mappings)
 {
     this.temp = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }
Example #2
0
 /// <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);
 }
Example #3
0
 /// <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]);
     }
 }