title: Deserializing XML to Objects in C#
body: <p>So I have xml that looks like this:
  </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;todo-list&gt;
    &lt;id type="integer"&gt;#{id}&lt;/id&gt;
    &lt;name&gt;#{name}&lt;/name&gt;
    &lt;description&gt;#{description}&lt;/description&gt;
    &lt;project-id type="integer"&gt;#{project_id}&lt;/project-id&gt;
    &lt;milestone-id type="integer"&gt;#{milestone_id}&lt;/milestone-id&gt;
    &lt;position type="integer"&gt;#{position}&lt;/position&gt;
  
    &lt;!-- if user can see private lists --&gt;
    &lt;private type="boolean"&gt;#{private}&lt;/private&gt;
  
    &lt;!-- if the account supports time tracking --&gt;
    &lt;tracked type="boolean"&gt;#{tracked}&lt;/tracked&gt;
  
    &lt;!-- if todo-items are included in the response --&gt;
    &lt;todo-items type="array"&gt;
      &lt;todo-item&gt;
        ...
      &lt;/todo-item&gt;
      &lt;todo-item&gt;
        ...
      &lt;/todo-item&gt;
      ...
    &lt;/todo-items&gt;
  &lt;/todo-list&gt;
  </code></pre>
  
  <p>How would I go about using .NET's serialization library to deserialize this into C# objects? </p>
  
  <p>Currently I'm using reflection and I map between the xml and my objects using the naming conventions.</p>