# C1.DataEngine.ClassFactory.CreateFromDataList

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_DataEngine_ClassFactory_CreateFromDataList_" data-uid="C1.DataEngine.ClassFactory.CreateFromDataList*">CreateFromDataList Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_DataEngine_ClassFactory_CreateFromDataList_" data-uid="C1.DataEngine.ClassFactory.CreateFromDataList*"></a>
<h4 id="C1_DataEngine_ClassFactory_CreateFromDataList_C1_DataEngine_IDataList_System_String_" data-uid="C1.DataEngine.ClassFactory.CreateFromDataList(C1.DataEngine.IDataList,System.String)">CreateFromDataList(IDataList, string)</h4>
<div class="markdown level1 summary"><p>Creates a bindable collection of strongly typed objects from an <a class="xref" href="../C1.DataEngine/C1.DataEngine.IDataList.html">IDataList</a> instance.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static List&lt;object&gt; CreateFromDataList(IDataList list, string className = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function CreateFromDataList(list As IDataList, Optional className As String = Nothing) As List(Of Object)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="../C1.DataEngine/C1.DataEngine.IDataList.html">IDataList</a></td>
      <td><span class="parametername">list</span></td>
      <td><p>A list of items that implements the <a class="xref" href="../C1.DataEngine/C1.DataEngine.IDataList.html">IDataList</a> interface.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">className</span></td>
      <td><p>The name of the class to be generated for collection items. If null, &quot;DynamicObject&quot; is used.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>&gt;</td>
      <td><p>A collection of strongly typed objects.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_DataEngine_ClassFactory_CreateFromDataList_C1_DataEngine_IDataList_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The <code class="paramref">list</code> parameter is typically derived from a call to
<a class="xref" href="../C1.DataEngine/C1.DataEngine.Workspace.GetTableData.html#C1_DataEngine_Workspace_GetTableData_System_String_System_Int32_">GetTableData(string, int)</a> (for base tables) or
<a class="xref" href="../C1.DataEngine/C1.DataEngine.Workspace.GetTableData.html#C1_DataEngine_Workspace_GetTableData_System_String_System_Int32_">GetTableData(string, int)</a> (for queries).</p>
</div>
</div>
