title: Accessing a Dictionary.Keys Key through a numeric index
body: <p>I'm using a <code>Dictionary&lt;string, int&gt;</code> where the <code>int</code> is a count of the key.</p>
  
  <p>Now, I need to access the last-inserted Key inside the Dictionary, but I do not know the name of it. The obvious attempt:</p>
  
  <pre><code>int LastCount = mydict[mydict.keys[mydict.keys.Count]];
  </code></pre>
  
  <p>does not work, because <code>Dictionary.Keys</code> does not implement a []-indexer.</p>
  
  <p>I just wonder if there is any similar class? I thought about using a Stack, but that only stores a string. I could now create my own struct and then use a <code>Stack&lt;MyStruct&gt;</code>, but I wonder if there is another alternative, essentially a Dictionary that implements an []-indexer on the Keys?</p>