/// <summary> /// Initializes a new instance of the <see cref="StubRowCollection">StubRowCollection</see> class containing the elements of the specified source collection. /// </summary> /// <param name="value">A <see cref="StubRowCollection">StubRowCollection</see> with which to initialize the collection.</param> public StubRowCollection(StubRowCollection value) { if (value != null) { this.AddRange(value); } }
/// <summary> /// Adds the contents of another <see cref="StubRowCollection">StubRowCollection</see> to the end of the collection. /// </summary> /// <param name="value">A <see cref="StubRowCollection">StubRowCollection</see> containing the Components to add to the collection. </param> public void AddRange(StubRowCollection value) { if (value == null) { throw new ArgumentNullException("value", "Cannot add a range from null."); } if (value != null) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add((StubRow)value.List[i]); } } }
/// <summary> /// Initializes a new instance of the <see cref="StubRowCollectionEnumerator">StubRowCollectionEnumerator</see> class referencing the specified <see cref="StubRowCollection">StubRowCollection</see> object. /// </summary> /// <param name="mappings">The <see cref="StubRowCollection">StubRowCollection</see> to enumerate.</param> public StubRowCollectionEnumerator(StubRowCollection mappings) { _temp = mappings; _enumerator = _temp.GetEnumerator(); }
/// <summary> /// Adds the contents of another <see cref="StubRowCollection">StubRowCollection</see> to the end of the collection. /// </summary> /// <param name="value">A <see cref="StubRowCollection">StubRowCollection</see> containing the Components to add to the collection. </param> public void AddRange(StubRowCollection value) { if (value == null) throw new ArgumentNullException("value", "Cannot add a range from null."); if (value != null) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add((StubRow)value.List[i]); } } }