title: How do I access Collection keys during For Each in VB.net?
body: <p>I have some code like this:</p>
  
  <pre><code>Dim col As Collection = New Collection
  col.Add(value1, "key1")
  col.Add(value2, "key2")
  
  ' later...
  For Each item As String In col
      ' want to get valueX and keyX here; currently, "item" holds the value
  Next
  </code></pre>
  
  <p>How can I get both the value and key within the loop? Maybe there is another class that makes this easier?</p>