[]
        
(Showing Draft Content)

C1.DataEngine.ClassFactory.CreateFromDictionary

CreateFromDictionary Method

CreateFromDictionary(Dictionary<string, object>, string)

Creates a bindable collection of strongly typed objects from a Dictionary<TKey, TValue> instance.

Declaration
public static object CreateFromDictionary(Dictionary<string, object> dict, string className = null)
Parameters
Type Name Description
Dictionary<string, object> dict

A dictionary of string/object pairs.

string className

The name of the class to be generated for collection items. If null, "DynamicObject" is used.

Returns
Type Description
object

A collection of strongly typed objects.