title: What is the best way to convert dictionary to a custom KeyValuePair type list?
body: <p>I have a class:</p>
  
  <pre><code>public class MyKeyValuePair
  {
      public string Key;
      public string Value;
  
      ...
  }
  </code></pre>
  
  <p>I would like to know if there's a better way of doing it than this:</p>
  
  <pre><code>List&lt;MyKeyValuePair&gt; myList;
  Dictionary&lt;string,string&gt; dict;
  
  foreach(var pair in dict)
  {
      myList.add(new MyKeyValuePair(pair.Key, pair.Value))
  }
  </code></pre>