I'm working with the SyndicationItem
class and have found the Categories
property.
According to the documentation this property doesn't have a setter, I have however found out that I can write to the property, i.e.
var syndicationItem = new SyndicationItem
{
Categories = { new SyndicationCategory("Category name") }
};
Now, that's not good enough since I can't enumerate my values like that. If I do something like this
var categoryCollection = new Collection<SyndicationCategory>();
var syndicationItem = new SyndicationItem
{
Categories = categoryCollection
};
The Categories
property get all squiggled up and tells me there's no setter.
What am I missing?