DataEngine for .NET Standard | ComponentOne
C1.DataEngine.Api Assembly / C1.DataEngine Namespace / ClassFactory Class / CreateFromDictionary Method
A dictionary of string/object pairs.
The name of the class to be generated for collection items. If null, "DynamicObject" is used.

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

    Parameters

    dict
    A dictionary of string/object pairs.
    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.
    See Also