cohtml.Net.ModelData
On this page
Information about the data binding model.
Inherited by cohtml.Net.ArrayModelData
Public Functions
Name | |
---|---|
virtual bool | BindModel(IntPtr binderPtr) Binds the object model to the Cohtml Binder. |
void | SetTypeInfo(ref ObjectInfo objectInfo) Sets up the ObjectInfo based on the model’s information. |
ElementType | DotNetTypeToCohtmlType(string typeName) Convert .Net type name to Cohtml type name |
Public Functions Documentation
function BindModel
virtual bool BindModel(
IntPtr binderPtr
)
Binds the object model to the Cohtml Binder.
Parameters:
- binderPtr A pointer to the binder where the object should be registered.
Return: True if the model is successfully registered; otherwise, False.
Reimplemented by: cohtml.Net.ArrayModelData.BindModel
function SetTypeInfo
void SetTypeInfo(
ref ObjectInfo objectInfo
)
Sets up the ObjectInfo based on the model’s information.
Parameters:
- objectInfo The ObjectInfo instance to be set up.
function DotNetTypeToCohtmlType
ElementType DotNetTypeToCohtmlType(
string typeName
)
Convert .Net type name to Cohtml type name
Parameters:
- typeName DotNet type name
Return: Cohtml type name