title: C# anonymous object with properties from dictionary
body: <p>I'm trying to convert an dictionary to an anonymous type with one property for every Key.</p>
  
  <p>I tried google it but all I could find was how to convert a anonymous object to a dictionary. </p>
  
  <p>My dictionary looks something like this:</p>
  
  <pre><code>var dict = new Dictionary&lt;string, string&gt;
  {
      {"Id", "1"},
      {"Title", "My title"},
      {"Description", "Blah blah blah"},
  };
  </code></pre>
  
  <p>And i would like to return a anonymous object that looks like this.</p>
  
  <pre><code>var o = new 
  {
      Id = "1",
      Title = "My title",
      Description = "Blah blah blah"
  };
  </code></pre>
  
  <p>So I would like it to loop thru every keyValuePair in the dictionary and create a property in the object for every key.</p>
  
  <p>I don't know where to begin.</p>
  
  <p>Please help.</p>