title: Accessing a dictionary key by its index
body: <p>It's probably an easy question but how do I access the value of a dictionary key in a specific row.
  Let's say <code>Dict</code> is <code>{ 1,13; 3,14; 5,17 }</code> 
  The second key is <code>3</code>. </p>
  
  <p>How do I get that value? 
  I tried <code>Dict-&gt;Key[2]</code> but gave an error and can't find a reference to it </p>
  
  <p>Update:
  This gives me what I need but maybe there is a faster way.</p>
  
  <pre><code> Dictionary&lt;double, double&gt;::KeyCollection^ keyColl = Dict-&gt;Keys;
  
   double first;
   double last;
  
    int counter=0;
    int dictionaryCount = Dict-&gt;Count;
  for each( double s in keyColl )
  {
  if(counter==0){
      first=s;
  }
  if(dictionaryCount == counter+1){
      last=s;
  }
  //Dict[first] would be the first key
  //Dict[last] would be the last key
  </code></pre>