title: Mapping object to dictionary and vice versa
body: <p>Are there any elegant quick way to map object to a dictionary and vice versa?</p>
  <h3>Example:</h3>
  <pre><code>IDictionary&lt;string,object&gt; a = new Dictionary&lt;string,object&gt;();
  a[&quot;Id&quot;]=1;
  a[&quot;Name&quot;]=&quot;Ahmad&quot;;
  // .....
  </code></pre>
  <p>becomes</p>
  <pre><code>SomeClass b = new SomeClass();
  b.Id=1;
  b.Name=&quot;Ahmad&quot;;
  // ..........
  </code></pre>