title: List of KeyValuePair
body: <p>Why does .NET not provide a class for a <code>List&lt;KeyValuePair&lt;T, U&gt;&gt;</code>?</p>
  
  <p>I think there are a lot of situations when you need to keep an array of pairs. For example,</p>
  
  <pre><code>1; 2      "a"; "array"
  5; 8      "b"; "browser"
  1; 9      "f"; "Firefox"
  8; 10     "f"; "frequency"
  </code></pre>
  
  <p>À la:</p>
  
  <pre><code>Pairs&lt;int, int&gt; myPairs;
  
  myPairs.Add(10, 8);
  myPairs.Add(5, 8);
  myPairs.Add(10, 5);
  myPairs.Add(1, 4);
  
  myPairs[0].Value1 = 5;
  myPairs[5].Value2 = 8;
  </code></pre>