/// ------------------------------------------------------------------------------------ /// <summary> /// Adds the contents of another <see cref='SIL.FieldWorks.Build.Tasks.XmlAssemblyCollection'/> to the end of the collection. /// </summary> /// <param name='value'> /// A <see cref='SIL.FieldWorks.Build.Tasks.XmlAssemblyCollection'/> containing the objects to add to the collection. /// </param> /// <seealso cref='SIL.FieldWorks.Build.Tasks.XmlAssemblyCollection.Add'/> /// ------------------------------------------------------------------------------------ public void AddRange(XmlAssemblyCollection value) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add(value[i]); } }
/// ------------------------------------------------------------------------------------ /// <summary> /// Initializes a new instance of <see cref='SIL.FieldWorks.Build.Tasks.XmlAssemblyCollection'/> based on another <see cref='SIL.FieldWorks.Build.Tasks.XmlAssemblyCollection'/>. /// </summary> /// <param name='value'> /// A <see cref='SIL.FieldWorks.Build.Tasks.XmlAssemblyCollection'/> from which the contents are copied /// </param> /// ------------------------------------------------------------------------------------ public XmlAssemblyCollection(XmlAssemblyCollection value) { this.AddRange(value); }
/// -------------------------------------------------------------------------------- /// <summary> /// Initializes a new instance of <see cref='SIL.FieldWorks.Build.Tasks.XmlAssemblyCollection.XmlAssemblyEnumerator'/>. /// </summary> /// <param name='mappings'>The <see cref='SIL.FieldWorks.Build.Tasks.XmlAssemblyCollection'/> that we enumerate</param> /// -------------------------------------------------------------------------------- public XmlAssemblyEnumerator(XmlAssemblyCollection mappings) { this.temp = ((IEnumerable)(mappings)); this.baseEnumerator = temp.GetEnumerator(); }