title: Convert generic List/Enumerable to DataTable?
body: <p>I have few methods that returns different Generic Lists. </p>
  
  <p>Exists in .net any class static method or whatever to convert any list into a datatable? The only thing that i can imagine is use Reflection to do this.</p>
  
  <p>IF i have this:</p>
  
  <pre><code>List&lt;Whatever&gt; whatever = new List&lt;Whatever&gt;();
  </code></pre>
  
  <p>(This next code doesn't work of course, but i would like to have the possibility of:</p>
  
  <pre><code>DataTable dt = (DataTable) whatever;
  </code></pre>