title: Convert dictionary to anonymous object
body: <p>I have a dictionary</p>
  
  <pre><code>Dictionary&lt;string, object&gt; dict;
  </code></pre>
  
  <p>And i get values from it by typing</p>
  
  <pre><code>string foo = dict["foo"].ToString();
  </code></pre>
  
  <p>The dictionary is a serialized JSON result.</p>
  
  <pre><code>serializer.Deserialize&lt;Dictionary&lt;string, object&gt;&gt;(HttpContext.Current.Request["JSON"]);
  </code></pre>
  
  <p>What i would like to know if thers a way to convert it to an object, so i can type something like:</p>
  
  <pre><code>string foo = dict.foo;
  </code></pre>
  
  <p>Thanks</p>