public AtomRoot() { Namespaces = new XmlSerializerNamespaces(); entries = new AtomEntryCollection(); links = new AtomLinkCollection(); contributors = new AtomParticipantCollection(); }
/// <summary> /// Adds the elements of another AtomParticipantCollection to the end of this AtomParticipantCollection. /// </summary> /// <param name="participants"> /// The AtomParticipantCollection whose elements are to be added to the end of this AtomParticipantCollection. /// </param> public virtual void AddRange(AtomParticipantCollection participants) { foreach (AtomParticipant participant in participants) { this.List.Add(participant); } }
public Enumerator(AtomParticipantCollection collection) { this.wrapped = ((System.Collections.CollectionBase)collection).GetEnumerator(); }
/// <summary> /// Initializes a new instance of the AtomParticipantCollection class, containing elements /// copied from another instance of AtomParticipantCollection /// </summary> /// <param name="participants"> /// The AtomParticipantCollection whose elements are to be added to the new AtomParticipantCollection. /// </param> public AtomParticipantCollection(AtomParticipantCollection participants) { this.AddRange(participants); }