title: How do I know if I'm iterating on the last item of the collection?
body: <p>I want to do something different on the last <code>KeyValuePair</code> of the <code>Dictionary</code> I'm iterating on.</p>
  
  <pre><code>For Each item In collection
      If ItsTheLastItem
          DoX()
      Else
          DoY()
      End If
  Next 
  </code></pre>
  
  <p>Is this possible?</p>
  
  <p><strong>Re-Edit:</strong> I'm not using a Dictionary's values, I'm actually using a List of <code>KeyValuePair</code>s. I've converted them and didn't notice later, dumb me.</p>