title: Create Anonymous object from Dictionary
body: <p>Today I got stuck at one point where I need to convert a <code>Dictionary&lt;String,String&gt;</code> to an anonymous object. Is there any one who has tried this before. Below is the example what I actually need.</p>
  
  <pre><code>var dict = new Dictionary&lt;string, object&gt; 
  {
      { "CourseId", "XDX123BH" }, 
      { "PersonID", "JIHJ98KH" } 
  };
  </code></pre>
  
  <p>Though this object I want to create is an anonymous object like:</p>
  
  <pre><code>new {CourseID = "XDX123BH", PersonId = "JIHJ98KH" }
  </code></pre>
  
  <p>Is it possible to do this?</p>