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