Collections Generic List anonymous type to System Data.IDataReader
<p>i have a anonymous list here and trying to load its data to Datatable but getting an error </p>

<pre><code>     var empList1 = employees.Select(p =&gt; new { UserId = p.UserId, empName = p.FullName, EmpCode = p.EmployeeCode }).Distinct().ToList();

   DataTable dtt = new DataTable();
       // dtt.Load(empList1);
</code></pre>

<p><strong>Severity  Code    Description Project File    Line    Suppression State   Tool
Error   CS1503  Argument 1: cannot convert from 'System.Collections.Generic.List&lt;>' to 'System.Data.IDataReader'</strong>  </p>

<p>any solution ?? </p>