title: How to convert a list to datatable
body: <p>I have a class which is converting from <code>JSON</code> text </p>
  
  <p>This is my code </p>
  
  <pre><code>   SearchResult myojb = (SearchResult)js.Deserialize(objText, typeof(SearchResult));
  </code></pre>
  
  <p>And the <code>SearchResult</code> class is </p>
  
  <pre><code> public class SearchResult
      {
          public List&lt;Datum&gt; data { get; set; }
          public int page { get; set; }
          public int per_page { get; set; }
          public int total_count { get; set; }
          public string search_id { get; set; }
      }
  </code></pre>
  
  <p>And <code>DAtum</code> class is </p>
  
  <pre><code>public class Datum
      {
          public string id { get; set; }
          public string description { get; set; }
          public string added_date { get; set; }
          public string media_type { get; set; }
          public Contributor contributor { get; set; }
          public string aspect { get; set; }
          public string image_type { get; set; }
          public bool is_editorial { get; set; }
          public bool is_adult { get; set; }
          public bool is_illustration { get; set; }
          public bool has_model_release { get; set; }
          public bool has_property_release { get; set; }
          public List&lt;string&gt; releases { get; set; }
          public List&lt;Category&gt; categories { get; set; }
          public List&lt;string&gt; keywords { get; set; }
          public Assets assets { get; set; }
          public List&lt;Model&gt; models { get; set; }
      }
  </code></pre>
  
  <p>I want to convert the List <code>data</code> of <code>SearchResult</code> class into <code>datatable</code>.
  for conversion I am using <a href="https://stackoverflow.com/a/18100872">https://stackoverflow.com/a/18100872</a> answer.
  But not understand how to call it with List <code>data</code>.</p>
  
  <p>Please help stuck with this issue.</p>