private GetFeedContent ( System.ServiceModel.Syndication.SyndicationFeed feed ) : string | ||
feed | System.ServiceModel.Syndication.SyndicationFeed | |
return | string |
private string GetFeedContent(SyndicationFeed feed)
{
using (var sw = new StringWriter())
using (var xw = XmlWriter.Create(sw))
{
feed.GetAtom10Formatter().WriteTo(xw);
xw.Flush();
return sw.ToString();
}
}