3 instantiations of SyndicationItem
System.ServiceModel.Syndication (3)
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
466return new SyndicationItem();
System\ServiceModel\Syndication\SyndicationItem.cs (1)
193public virtual SyndicationItem Clone() => new SyndicationItem(this);
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (1)
55return new SyndicationItem();
101 references to SyndicationItem
System.ServiceModel (1)
netstandard.cs (1)
262[assembly: TypeForwardedTo(typeof(SyndicationItem))]
System.ServiceModel.Syndication (99)
System\ServiceModel\Syndication\Atom10FeedFormatter.cs (21)
232internal void ReadItemFrom(XmlReader reader, SyndicationItem result) 301internal bool TryParseItemElementFrom(XmlReader reader, SyndicationItem result) 434internal void WriteItemContents(XmlWriter dictWriter, SyndicationItem item) 494protected virtual SyndicationItem ReadItem(XmlReader reader, SyndicationFeed feed) 505SyndicationItem item = CreateItem(feed); 510protected virtual IEnumerable<SyndicationItem> ReadItems(XmlReader reader, SyndicationFeed feed, out bool areAllItemsRead) 521NullNotAllowedCollection<SyndicationItem> items = new NullNotAllowedCollection<SyndicationItem>(); 530protected virtual void WriteItem(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 537protected virtual void WriteItems(XmlWriter writer, IEnumerable<SyndicationItem> items, Uri feedBaseUri) 543foreach (SyndicationItem item in items) 629private SyndicationCategory ReadCategoryFrom(XmlReader reader, SyndicationItem item) 636private SyndicationContent ReadContentFrom(XmlReader reader, SyndicationItem item) 749NullNotAllowedCollection<SyndicationItem> feedItems = null; 763feedItems ??= new NullNotAllowedCollection<SyndicationItem>(); 764IEnumerable<SyndicationItem> items = ReadItems(reader, result, out areAllItemsRead); 765foreach (SyndicationItem item in items) 824private void ReadItemFrom(XmlReader reader, SyndicationItem result, Uri feedBaseUri) 999private SyndicationLink ReadLinkFrom(XmlReader reader, SyndicationItem item) 1013private SyndicationPerson ReadPersonFrom(XmlReader reader, SyndicationItem item) 1164private void WriteItemContents(XmlWriter dictWriter, SyndicationItem item, Uri feedBaseUri)
System\ServiceModel\Syndication\Atom10ItemFormatter.cs (7)
18public Atom10ItemFormatter() : this(typeof(SyndicationItem)) 29if (!typeof(SyndicationItem).IsAssignableFrom(itemTypeToCreate)) 31throw new ArgumentException(SR.Format(SR.InvalidObjectTypePassed, nameof(itemTypeToCreate), nameof(SyndicationItem)), nameof(itemTypeToCreate)); 37public Atom10ItemFormatter(SyndicationItem itemToWrite) : base(itemToWrite) 120protected override SyndicationItem CreateItemInstance() => CreateItemInstance(ItemType); 141public class Atom10ItemFormatter<TSyndicationItem> : Atom10ItemFormatter where TSyndicationItem : SyndicationItem, new() 151protected override SyndicationItem CreateItemInstance() => new TSyndicationItem();
System\ServiceModel\Syndication\Rss20FeedFormatter.cs (18)
134internal void ReadItemFrom(XmlReader reader, SyndicationItem result) 139internal void WriteItemContents(XmlWriter writer, SyndicationItem item) 146protected virtual SyndicationItem ReadItem(XmlReader reader, SyndicationFeed feed) 157SyndicationItem item = CreateItem(feed); 162protected virtual IEnumerable<SyndicationItem> ReadItems(XmlReader reader, SyndicationFeed feed, out bool areAllItemsRead) 173NullNotAllowedCollection<SyndicationItem> items = new NullNotAllowedCollection<SyndicationItem>(); 182protected virtual void WriteItem(XmlWriter writer, SyndicationItem item, Uri feedBaseUri) 189protected virtual void WriteItems(XmlWriter writer, IEnumerable<SyndicationItem> items, Uri feedBaseUri) 196foreach (SyndicationItem item in items) 259private SyndicationCategory ReadCategory(XmlReader reader, SyndicationItem item) 307private void ReadItemFrom(XmlReader reader, SyndicationItem result, Uri feedBaseUri) 559private SyndicationPerson ReadPerson(XmlReader reader, SyndicationItem item) 665NullNotAllowedCollection<SyndicationItem> feedItems = null; 743feedItems ??= new NullNotAllowedCollection<SyndicationItem>(); 744IEnumerable<SyndicationItem> items = ReadItems(reader, result, out areAllItemsRead); 745foreach (SyndicationItem item in items) 996private void WriteItemContents(XmlWriter writer, SyndicationItem item, Uri feedBaseUri)
System\ServiceModel\Syndication\Rss20ItemFormatter.cs (8)
19public Rss20ItemFormatter() : this(typeof(SyndicationItem)) 30if (!typeof(SyndicationItem).IsAssignableFrom(itemTypeToCreate)) 32throw new ArgumentException(SR.Format(SR.InvalidObjectTypePassed, nameof(itemTypeToCreate), nameof(SyndicationItem)), nameof(itemTypeToCreate)); 42public Rss20ItemFormatter(SyndicationItem itemToWrite) : this(itemToWrite, true) 46public Rss20ItemFormatter(SyndicationItem itemToWrite, bool serializeExtensionsAsAtom) : base(itemToWrite) 143protected override SyndicationItem CreateItemInstance() => CreateItemInstance(ItemType); 164public class Rss20ItemFormatter<TSyndicationItem> : Rss20ItemFormatter, IXmlSerializable where TSyndicationItem : SyndicationItem, new() 178protected override SyndicationItem CreateItemInstance() => new TSyndicationItem();
System\ServiceModel\Syndication\SyndicationFeed.cs (11)
24private IEnumerable<SyndicationItem> _items; 28public SyndicationFeed() : this((IEnumerable<SyndicationItem>)null) 32public SyndicationFeed(IEnumerable<SyndicationItem> items) : this(null, null, null, items) 41public SyndicationFeed(string title, string description, Uri feedAlternateLink, IEnumerable<SyndicationItem> items) 51public SyndicationFeed(string title, string description, Uri feedAlternateLink, string id, DateTimeOffset lastUpdatedTime, IEnumerable<SyndicationItem> items) 91if (source._items is IList<SyndicationItem> srcList) 93Collection<SyndicationItem> tmp = new NullNotAllowedCollection<SyndicationItem>(); 143public IEnumerable<SyndicationItem> Items 145get => _items ??= new NullNotAllowedCollection<SyndicationItem>(); 464protected internal virtual SyndicationItem CreateItem()
System\ServiceModel\Syndication\SyndicationFeedFormatter.cs (11)
71protected internal static SyndicationCategory CreateCategory(SyndicationItem item) 81protected internal static SyndicationItem CreateItem(SyndicationFeed feed) 101protected internal static SyndicationLink CreateLink(SyndicationItem item) 121protected internal static SyndicationPerson CreatePerson(SyndicationItem item) 141protected internal static void LoadElementExtensions(XmlReader reader, SyndicationItem item, int maxExtensionSize) 195protected internal static bool TryParseAttribute(string name, string ns, string value, SyndicationItem item, string version) 251protected internal static bool TryParseContent(XmlReader reader, SyndicationItem item, string contentType, string version, out SyndicationContent content) 266protected internal static bool TryParseElement(XmlReader reader, SyndicationItem item, string version) 316protected internal static void WriteAttributeExtensions(XmlWriter writer, SyndicationItem item, string version) 366protected internal static void WriteElementExtensions(XmlWriter writer, SyndicationItem item, string version) 523internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, SyndicationItem item)
System\ServiceModel\Syndication\SyndicationItem.cs (6)
51protected SyndicationItem(SyndicationItem source) 71SourceFeed.Items = new Collection<SyndicationItem>(); 156public static SyndicationItem Load(XmlReader reader) => Load<SyndicationItem>(reader); 158public static TSyndicationItem Load<TSyndicationItem>(XmlReader reader) where TSyndicationItem : SyndicationItem, new() 193public virtual SyndicationItem Clone() => new SyndicationItem(this);
System\ServiceModel\Syndication\SyndicationItemFormatter.cs (17)
12private SyndicationItem _item; 19protected SyndicationItemFormatter(SyndicationItem itemToWrite) 29public SyndicationItem Item => _item; 41protected internal virtual void SetItem(SyndicationItem item) 51internal static SyndicationItem CreateItemInstance(Type itemType) 53if (itemType.Equals(typeof(SyndicationItem))) 59return (SyndicationItem)Activator.CreateInstance(itemType); 63protected static SyndicationCategory CreateCategory(SyndicationItem item) => SyndicationFeedFormatter.CreateCategory(item); 65protected static SyndicationLink CreateLink(SyndicationItem item) => SyndicationFeedFormatter.CreateLink(item); 67protected static SyndicationPerson CreatePerson(SyndicationItem item) => SyndicationFeedFormatter.CreatePerson(item); 69protected static void LoadElementExtensions(XmlReader reader, SyndicationItem item, int maxExtensionSize) 89protected static bool TryParseAttribute(string name, string ns, string value, SyndicationItem item, string version) 109protected static bool TryParseContent(XmlReader reader, SyndicationItem item, string contentType, string version, out SyndicationContent content) 114protected static bool TryParseElement(XmlReader reader, SyndicationItem item, string version) 134protected static void WriteAttributeExtensions(XmlWriter writer, SyndicationItem item, string version) 154protected static void WriteElementExtensions(XmlWriter writer, SyndicationItem item, string version) 159protected abstract SyndicationItem CreateItemInstance();
System.ServiceModel.Web (1)
System.ServiceModel.Web.cs (1)
32[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.ServiceModel.Syndication.SyndicationItem))]