Class ClassFactory
Class that creates the dynamic classes for the given properties and gets the dynamic class for the given dynamic properties, generate properties for the given dynamic class, etc , this class as the factory for the classes.
Inherited Members
Namespace: Syncfusion.Maui.Data
Assembly: Syncfusion.Maui.Data.dll
Syntax
public class ClassFactory
Properties
Instance
Gets the new instance of the ClassFactory class.
Declaration
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling", Justification = "ClassFactory relies on dynamic code generation")]
public static ClassFactory Instance { get; }
Property Value
| Type |
|---|
| ClassFactory |
Methods
GetDynamicClass(IEnumerable<DynamicProperty>)
Gets the dynamic class for the given enumerable collection of dynamic properties.
Declaration
[UnconditionalSuppressMessage("AOT", "IL3050:Calling members annotated with 'RequiresDynamicCodeAttribute' may break functionality when AOT compiling", Justification = "The CreateDynamicClass method relies on dynamic code generation")]
public Type GetDynamicClass(IEnumerable<DynamicProperty> properties)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<DynamicProperty> | properties | The IEnumerable collection of the dynamic properties for which the dynamic class is to be obtained. |
Returns
| Type | Description |
|---|---|
| Type | The type of the dynamic class obtained for the given properties. |