嗨,我正在尝试将提要项目中的内容读入字符串。
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);
有什么办法可以扭转这种情况?
谢谢