title: Convert DataTable to nestead Class by linq
body: <p>I have a nested class definition as below:</p>
  
  <pre><code>[XmlRoot()]
  public class cars
  {
      [XmlElement(ElementName="car")]
      public car[] carList { get; set; }
  }
  public class car
  {
      [XmlElement(ElementName = "manufacture")]
      public string manufacture { get; set; }
      [XmlElement(ElementName = "models")]
      public models modelList { get; set; }
  }
  public class models
  {
      [XmlElement(ElementName = "model")]
      public model[] modelList { get; set; }
  }
  public class model
  {
      [XmlElement(ElementName = "name")]
      public string name { get; set; }
      [XmlElement(ElementName = "color")]
      public string color { get; set; }
  }
  </code></pre>
  
  <p>I have a DataTable as below:</p>
  
  <pre><code> DataTable dt = new DataTable();
      dt.Columns.Add("Manufacture");
      dt.Columns.Add("ModelName");
      dt.Columns.Add("Color");
  
      Object[] rows = { 
          new Object[]{"P1","405","1,6"},
          new Object[]{"P1","406","1,7"},
          new Object[]{"P2","407","1,8"}，
          new Object[]{"P2","408","1,9"}
      };
      dt.Rows.Add(rows);
  </code></pre>
  
  <p>I want to convert my data in DataTable to my class cars.
  Any help would be appreciated.<br>
  Update:
  For using suggestion, I need to change Rows.Add with below code, otherwise, I will only get object in result.</p>
  
  <pre><code>            DataRow dr= dt.NewRow();
          dr["Manufacture"] = "Peugeot1";
          dr["ModelName"] = "405";
          dr["Color"] = "1,6";
          dt.Rows.Add(dr);
          DataRow dr2 = dt.NewRow();
          dr2["Manufacture"] = "Peugeot1";
          dr2["ModelName"] = "406";
          dr2["Color"] = "1,7";
          dt.Rows.Add(dr2);
          DataRow dr3 = dt.NewRow();
          dr3["Manufacture"] = "Peugeot2";
          dr3["ModelName"] = "405";
          dr3["Color"] = "1,6";
          dt.Rows.Add(dr3);
  </code></pre>