title: Dictionary<string, double>get key from value (error)
body: <p>I have a dictionary (Dictionary) and I want to get key value from (value) for instance:</p>
  
  <p>suppose the dic contains:</p>
  
  <pre><code>"som": 12.2345
  "roy": 2.677
  "toy": 1.67445666777
  </code></pre>
  
  <p>I want to get the roy key from searching about 2.677</p>
  
  <p>I tried:</p>
  
  <pre><code>var keys = from entry in dic
                             where entry.Value == 2.677
                             select entry.Key;
  </code></pre>
  
  <p>and also :</p>
  
  <pre><code>var myKey =dic.FirstOrDefault(x =&gt; x.Value.Contains(2.677)).Key;
  </code></pre>
  
  <p>in each case I got the same error which is :
  Error:  'double' does not contain a definition for 'Value' and no extension method 'Value' accepting a first argument of type 'double' could be found (are you missing a using directive or an assembly reference?) </p>
  
  <p>any help would be appreciated</p>