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