title: Convert String Into Dynamic Object
body: <p>Is there a straightforward way of converting:</p>
  
  <pre><code>string str = "a=1,b=2,c=3";
  </code></pre>
  
  <p>into:</p>
  
  <pre><code>dynamic d = new { a = 1, b = 2, c = 3 };
  </code></pre>
  
  <p>I think I could probably write a function that splits the string and loops the results to create the dynamic object. I was just wondering if there was a more elegant way of doing this.</p>