コード例 #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);
 }