Xin chào, tôi đang cố gắng đọc nội dung thành chuỗi từ các mục nguồn cấp dữ liệu.Đọc nội dung văn bản từ SyndicationContent
SyndicationFeed feed = SyndicationFeed.Load(feedReader);
SydicationContent itemContent = feed.Items.ToList<SyndicationItem>()[0].Content;
string retrivedContent = itemContent .......???
làm cách nào tôi có thể đọc văn bản từ mụcContent?
Các tài liệu cho thấy làm thế nào để tạo TextSyndicationContent
TextSyndicationContent textContent = new TextSyndicationContent("Some text content");
SyndicationItem item = new SyndicationItem("Item Title", textContent, new Uri("server/items";), "ItemID", DateTime.Now);
Bất kỳ cách nào để đảo ngược này?
nhờ
Bạn nên xem xét chấp nhận câu trả lời của AndyH thay vì câu trả lời đã cho. –