title: How do I limit the number of elements iterated over in a foreach loop?
body: <p>I have the following code</p>
  
  <pre><code>foreach (var rssItem in rss.Channel.Items)
  {
      // ...
  }
  </code></pre>
  
  <p>But only want 6 items not all items, how can I do it in C#?</p>