cohtml.Net.ModelData
Information about the data binding model.
Inherits from IDisposable
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 |
| void | Dispose() |
Protected Functions
| Name | |
|---|---|
| virtual void | Dispose(bool disposing) |
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
function Dispose
void Dispose()
Protected Functions Documentation
function Dispose
virtual void Dispose(
bool disposing
)
Reimplemented by: cohtml.Net.ArrayModelData.Dispose