嗨,我想从Feed项目中读取字符串的内容。阅读来自SyndicationContent的内容文本
SyndicationFeed feed = SyndicationFeed.Load(feedReader);
SydicationContent itemContent = feed.Items.ToList<SyndicationItem>()[0].Content;
string retrivedContent = itemContent .......???
如何从itemContent中读取文本?
文档演示如何创建TextSyndicationContent
TextSyndicationContent textContent = new TextSyndicationContent("Some text content");
SyndicationItem item = new SyndicationItem("Item Title", textContent, new Uri("server/items";), "ItemID", DateTime.Now);
任何办法扭转这一点?
感谢
你应该考虑接受AndyH的回答而不是给定的答案。 – 2015-11-10 02:28:27