title: Convert DataSet to List
body: <p>Here is my c# code</p>
  
  <pre><code>Employee objEmp = new Employee();
  List&lt;Employee&gt; empList = new List&lt;Employee&gt;();
  foreach (DataRow dr in ds.Tables[0].Rows)
  {
      empList.Add(new Employee { Name = Convert.ToString(dr["Name"]), Age = Convert.ToInt32(dr["Age"]) });
  }
  </code></pre>
  
  <p>It uses a loop to create a List from a dataset.Is there any direct method or shorter method or one line code to convert dataset to list</p>