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