DataEngine for .NET Standard | ComponentOne
C1.DataEngine.Api Assembly / C1.DataEngine Namespace / ClassFactory Class / CreateFromDataList Method
A list of items that implements the IDataList interface.
The name of the class to be generated for collection items. If null, "DynamicObject" is used.

In This Topic
    CreateFromDataList Method
    In This Topic
    Creates a bindable collection of strongly typed objects from an IDataList instance.
    Syntax
    'Declaration
     
    Public Shared Function CreateFromDataList( _
       ByVal list As IDataList, _
       Optional ByVal className As String _
    ) As List(Of Object)
    public static List<object> CreateFromDataList( 
       IDataList list,
       string className
    )

    Parameters

    list
    A list of items that implements the IDataList interface.
    className
    The name of the class to be generated for collection items. If null, "DynamicObject" is used.

    Return Value

    A collection of strongly typed objects.
    Remarks
    The list parameter is typically derived from a call to Workspace.GetTableData (for base tables) or Workspace.GetTableData (for queries).
    See Also