title: Intersect lists on KeyValuePair key?
body: <p>How do I insertsect two lists of KeyValuePairs based on their keys? I have tried:</p>
  
  <pre><code>List&lt;KeyValuePair&lt;string, string&gt;&gt; listA = new List&lt;KeyValuePair&lt;string, string&gt;&gt;();
  List&lt;KeyValuePair&lt;string, string&gt;&gt; listB = new List&lt;KeyValuePair&lt;string, string&gt;&gt;();
  ...
  var result = listA.Intersect(listB);
  </code></pre>
  
  <p>Which expectedly doesn't work. Do I need to write my own comparer based on the key or is there a easy way using LINQ/Lambda?</p>
  
  <p>Thanks!</p>