title: Good way to get the key of the highest value of a Dictionary in C#
body: <p>I'm trying to get the key of the maximum value in the <code>Dictionary&lt;string, double&gt; results</code>.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>double max = results.Max(kvp =&gt; kvp.Value);
  return results.Where(kvp =&gt; kvp.Value == max).Select(kvp =&gt; kvp.Key).First();
  </code></pre>
  
  <p>However, since this seems a little inefficient, I was wondering whether there was a better way to do this.</p>