title: Loop trought Dictionary<string, object> only for a key in c#
body: <p>I have a dictionary of strings and object that i obtained deserializing this json answer:</p>
  
  <pre><code>{"labels":[{"id":"1","descrizione":"Etichetta interna","tipo":"0","template_file":"et_int.txt"},{"id":"2","descrizione":"Etichetta esterna","tipo":"1","template_file":"et_ext.txt"}],"0":200,"error":false,"status":200}
  </code></pre>
  
  <p>using the code: </p>
  
  <pre><code>var labels = new JavaScriptSerializer().Deserialize&lt;Dictionary&lt;string, object&gt;&gt;(json);   
  </code></pre>
  
  <p>Now i want to loop only trought the objects inside the "labels" key.
  I tried</p>
  
  <pre><code>foreach (var outer in labels["labels"]){/* code */}
  </code></pre>
  
  <p>but i got error:</p>
  
  <pre><code>CS1579: foreach statement cannot operate on variables of type 'object' because 'object' does not contain a public definition for 'GetEnumerator'.
  </code></pre>
  
  <p><strong>Solved replacing the dictionary with a class, thank you</strong></p>