예제 #1
0
 /// <summary>
 /// Adds the elements of another RssItemCollection to the end of this RssItemCollection.
 /// </summary>
 /// <param name="items">
 /// The RssItemCollection whose elements are to be added to the end of this RssItemCollection.
 /// </param>
 public virtual void AddRange(IAItemCollection items)
 {
     foreach (IAItem item in items)
     {
         this.List.Add(item);
     }
 }
예제 #2
0
 public Enumerator(IAItemCollection collection)
 {
     this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the RssItemCollection class, containing elements
 /// copied from another instance of RssItemCollection
 /// </summary>
 /// <param name="items">
 /// The RssItemCollection whose elements are to be added to the new RssItemCollection.
 /// </param>
 public IAItemCollection(IAItemCollection items)
 {
     this.AddRange(items);
 }