title: Find a KeyValuePair inside a List
body: <p>Suppose I have</p>
  
  <pre><code> List&lt;KeyValuePair&lt;int, string&gt;&gt; d
  </code></pre>
  
  <p>I know the string but I want to find its integer.
  How do I find the keyvaluepair inside this List?</p>