Exemple #1
0
 public static SyndicationItem Parse(XmlNode node)
 {
     SyndicationItem item = new SyndicationItem();
     if (node?.Name == "item")
     {
         item.title = node.SelectSingleNode("title")?.InnerText;
         item.description = node.SelectSingleNode("description")?.InnerText;
         item.link = node.SelectSingleNode("link")?.InnerText;
         item.pubDate = node.SelectSingleNode("pubDate")?.InnerText;
     }
     return item;
 }
 public RSSContentList_ListItemViewModel(SyndicationItem i)
 {
     _item = i;
 }