title: C# Break out of foreach loop after X number of items
body: <p>In my foreach loop I would like to stop after 50 items, how would you break out of this foreach loop when I reach the 50th item?</p>
  
  <p>Thanks</p>
  
  <pre><code>foreach (ListViewItem lvi in listView.Items)
  </code></pre>