嗨,我想從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