title: How to create a .csv file from a Dictionary<List, List<string>> in C#
body: <p>I have a 
      Dictionary(List, List(string))  (apologies, for some reason,  this editor is not allowing me to type &lt;>) 
  which looks like the following:</p>
  
  <pre><code>Key: A --&gt; Value:{1,2,3}
  Key: B --&gt; Value:{a,b,c}
  Key: C --&gt; Value:{Hi,Hello,Hola}
  </code></pre>
  
  <p>I would like to create a .csv file with Headers corresponding to my dictionary Keys, and 'Columns' corresponding to the List's.</p>
  
  <p>So, for instance, First 'column in my csv file should be:
     column 'A', with values 1 2 3
  Second 'column' in my csv file should be:
  column 'B', with values a  b c, etc..
  (Note that I would prefer that the ordering of the columns be kept, but it is ok if it's not)</p>
  
  <p>Or in other words, since this will be a Comma Separated File, the First 'Row' (Headers) should be: 
      <code>A,B,C</code><br>
      2nd row: 
      <code>1, a , Hi</code> 
      3rd row: 
      <code>2, b, Hello</code> 
      and 4th row: 
      <code>3, c, Hola</code></p>
  
  <p>What is the best way to achieve this in C#? I have tried researching this first, but most suggestions I seem to see online seem to not use a dictionary in the format   Dictionary(List, List(string)).</p>
  
  <p>I appreciate the help.</p>