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