Converting arbitrarily nested lists to POCOs or DataTables <p>I like to use nested Lists like <code>List&lt;List&lt;double&gt;&gt;</code>. Unfortunately I am using a library that only supports POCOs, ie plain old clr objects or DataTables.</p> <p>Is there a way to create a POCO or DataTable out of <code>List&lt;List&lt;double&gt;&gt;</code> or <code>List&lt;myClass&gt;</code> for my library to work with?</p> <p>In other words the same as <a href="http://stackoverflow.com/questions/6344939/how-to-convert-listliststring-to-a-datatable?lq=1">here</a> but not for string but for an arbitrarily nested list <code>List&lt;List&lt;double&gt;&gt;</code> or <code>List&lt;myClass&gt;</code>.</p>