I have the following code
foreach (var rssItem in rss.Channel.Items) { // ... }
But only want 6 items not all items, how can I do it in C#?
just iterate over the top 6 from the collection:
foreach(var rssItem in rss.Channel.Items.Take(6))