title: Convert arraylist to a list of dictionaries?
body: <p>Does somebody know how to convert an arraylist to a list of dictionaries?
  What do I have? I have an ArrayList (list) with a lot of strings:</p>
  
  <pre><code>            foreach (string s in list)
              {
                  Console.WriteLine(s);
              }
  
  output:
  klaus
  male
  spain
  lissy
  female
  england
  peter
  male
  usa
  ...
  </code></pre>
  
  <p>As we see there is an order. The first entry is a NAME, second GENDER, third COUNTRY and then again NAME, GENDER... and so on.</p>
  
  <p>Now for clarity I would like to store these attributes in a List of Dictionaries. Every List entry should be 1 Dictionary with these 3 Attributes. Is this a good idea? Whats the easiest way? I just search something to store this list in a better looking collection that is later easiert to handle. I have this:</p>
  
  <pre><code>    List&lt;Dictionary&lt;string, string&gt;&gt; dlist = new List&lt;Dictionary&lt;string, string&gt;&gt;();
      const int separate = 3;
  
      foreach (string s in list)
      {
          //add list entries to dlist?
      }
  </code></pre>