Combine foreach with an index
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/521687/c-sharp-foreach-with-index">C# foreach with index</a>  </p>
</blockquote>



<p>I enjoy working the simplicity of foreach in C#, but I often need an index.  Is there any way to combine these elegantly into one simple structure without doing the following:</p>

<pre><code>for(var i = 0; i&lt;items.Count; i++) {
    var item = items[i];
</code></pre>

<p>Or</p>

<pre><code>int i = 0;
foreach(var item in items) {
    i++;
</code></pre>

<p>I'd imagine something neat like:</p>

<pre><code>foreach(var item in items;int index) {
</code></pre>
