Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use SyndicationFeed?

This may seem like a dumb question, but I cannot for the life of me figure out how to get access to the SyndicationFeed class in c#. Every single example I have seen on MSDN or otherwise assumes that it's already imported, and not a single one I have found gives any indication on where it's located.

For example, I'm trying to run the following:

XmlReader reader = XmlReader.Create(rss_url);
SyndicationFeed.Load(reader);

But it fails because SyndicationFeed doesn't exist in the current context. Does anybody out there know how I can get it in?

like image 624
Slippery John Avatar asked Feb 26 '13 22:02

Slippery John


1 Answers

Read the documentation more carefully:

Namespace: System.ServiceModel.Syndication
Assembly: System.ServiceModel (in System.ServiceModel.dll)

Right-click your project, click Add Reference, then select System.ServiceModel.dll

like image 97
SLaks Avatar answered Nov 05 '22 21:11

SLaks