/// <summary> /// Initializes a new instance of the <see cref="PollOptionInfoCollection">PollOptionInfoCollection</see> class containing the elements of the specified source collection. /// </summary> /// <param name="value">A <see cref="PollOptionInfoCollection">PollOptionInfoCollection</see> with which to initialize the collection.</param> public PollOptionInfoCollection(PollOptionInfoCollection value) { this.AddRange(value); }
/// <summary> /// Adds the contents of another <see cref="PollOptionInfoCollection">PollOptionInfoCollection</see> to the end of the collection. /// </summary> /// <param name="value">A <see cref="PollOptionInfoCollection">PollOptionInfoCollection</see> containing the Components to add to the collection. </param> public void AddRange(PollOptionInfoCollection value) { for (int i = 0; (i < value.Count); i = (i + 1)) { this.Add((PollOptionInfo)value.List[i]); } }
/// <summary> /// Initializes a new instance of the <see cref="PollOptionInfoCollectionEnumerator">PollOptionInfoCollectionEnumerator</see> class referencing the specified <see cref="PollOptionInfoCollection">PollOptionInfoCollection</see> object. /// </summary> /// <param name="mappings">The <see cref="PollOptionInfoCollection">PollOptionInfoCollection</see> to enumerate.</param> public PollOptionInfoCollectionEnumerator(PollOptionInfoCollection mappings) { _temp = ((IEnumerable)(mappings)); _enumerator = _temp.GetEnumerator(); }