static internal Collection<SyndicationPerson> ClonePersons(Collection<SyndicationPerson> persons)
 {
     if (persons == null)
     {
         return null;
     }
     Collection<SyndicationPerson> result = new NullNotAllowedCollection<SyndicationPerson>();
     for (int i = 0; i < persons.Count; ++i)
     {
         result.Add(persons[i].Clone());
     }
     return result;
 }
 static internal Collection<SyndicationCategory> CloneCategories(Collection<SyndicationCategory> categories)
 {
     if (categories == null)
     {
         return null;
     }
     Collection<SyndicationCategory> result = new NullNotAllowedCollection<SyndicationCategory>();
     for (int i = 0; i < categories.Count; ++i)
     {
         result.Add(categories[i].Clone());
     }
     return result;
 }
 static internal Collection<SyndicationLink> CloneLinks(Collection<SyndicationLink> links)
 {
     if (links == null)
     {
         return null;
     }
     Collection<SyndicationLink> result = new NullNotAllowedCollection<SyndicationLink>();
     for (int i = 0; i < links.Count; ++i)
     {
         result.Add(links[i].Clone());
     }
     return result;
 }
 internal static Collection<SyndicationPerson> ClonePersons(Collection<SyndicationPerson> persons)
 {
     if (persons == null)
     {
         return null;
     }
     Collection<SyndicationPerson> collection = new NullNotAllowedCollection<SyndicationPerson>();
     for (int i = 0; i < persons.Count; i++)
     {
         collection.Add(persons[i].Clone());
     }
     return collection;
 }
 internal static Collection<SyndicationLink> CloneLinks(Collection<SyndicationLink> links)
 {
     if (links == null)
     {
         return null;
     }
     Collection<SyndicationLink> collection = new NullNotAllowedCollection<SyndicationLink>();
     for (int i = 0; i < links.Count; i++)
     {
         collection.Add(links[i].Clone());
     }
     return collection;
 }
 internal static Collection<SyndicationCategory> CloneCategories(Collection<SyndicationCategory> categories)
 {
     if (categories == null)
     {
         return null;
     }
     Collection<SyndicationCategory> collection = new NullNotAllowedCollection<SyndicationCategory>();
     for (int i = 0; i < categories.Count; i++)
     {
         collection.Add(categories[i].Clone());
     }
     return collection;
 }
 protected virtual IEnumerable<SyndicationItem> ReadItems(XmlReader reader, SyndicationFeed feed, out bool areAllItemsRead)
 {
     if (feed == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("feed");
     }
     if (reader == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
     }
     NullNotAllowedCollection<SyndicationItem> alloweds = new NullNotAllowedCollection<SyndicationItem>();
     while (reader.IsStartElement("item", ""))
     {
         alloweds.Add(this.ReadItem(reader, feed));
     }
     areAllItemsRead = true;
     return alloweds;
 }
 protected virtual IEnumerable<SyndicationItem> ReadItems(XmlReader reader, SyndicationFeed feed, out bool areAllItemsRead)
 {
     if (feed == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("feed");
     }
     if (reader == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reader");
     }
     NullNotAllowedCollection<SyndicationItem> items = new NullNotAllowedCollection<SyndicationItem>();
     while (reader.IsStartElement(Rss20Constants.ItemTag, Rss20Constants.Rss20Namespace))
     {
         items.Add(ReadItem(reader, feed));
     }
     areAllItemsRead = true;
     return items;
 }