Пример #1
0
 public void SaveRSSFeedToFile(RSSFeed rssFeed, bool newFeed = false)
 {
     // Write each directory name to a file.
     using (StreamWriter sw = new StreamWriter(Path.Combine(_rssFeedPath, rssFeed.Name + ".xml")))
     {
         sw.WriteLine(rssFeed.GetXmlRepresentation());
     }
     if (newFeed)
     {
         _rssFeeds.Add(rssFeed.Name, rssFeed);
     }
 }