title: How to iterate through List of Dictionaries?
body: <p>I have the following code :</p>
  
  <pre><code>List&lt;Dictionary&lt;string, string&gt;&gt; allMonthsList = new List&lt;Dictionary&lt;string, string&gt;&gt;();
  while (getAllMonthsReader.Read()) {
      Dictionary&lt;string, string&gt; month = new Dictionary&lt;string, string&gt;();
      month.Add(getAllMonthsReader["year"].ToString(),
      getAllMonthsReader["month"].ToString());
      allMonthsList.Add(month);
  }
  getAllMonthsReader.Close();
  </code></pre>
  
  <p>Now I'm trying to loop through all of the months, like this :</p>
  
  <pre><code>foreach (Dictionary&lt;string, string&gt; allMonths in allMonthsList)
  </code></pre>
  
  <p>How do I access the key values? Am I doing something wrong?</p>