Skip to content
SiteEmail

cohtml.Net.ModelData

Information about the data binding model.

Inherits from IDisposable

Inherited by cohtml.Net.ArrayModelData

Name
virtual boolBindModel(IntPtr binderPtr)
Binds the object model to the Cohtml Binder.
voidSetTypeInfo(ref ObjectInfo objectInfo)
Sets up the ObjectInfo based on the model’s information.
ElementTypeDotNetTypeToCohtmlType(string typeName)
Convert .Net type name to Cohtml type name
voidDispose()
Name
virtual voidDispose(bool disposing)
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

void SetTypeInfo(
ref ObjectInfo objectInfo
)

Sets up the ObjectInfo based on the model’s information.

Parameters:

  • objectInfo The ObjectInfo instance to be set up.
ElementType DotNetTypeToCohtmlType(
string typeName
)

Convert .Net type name to Cohtml type name

Parameters:

  • typeName DotNet type name

Return: Cohtml type name

void Dispose()
virtual void Dispose(
bool disposing
)

Reimplemented by: cohtml.Net.ArrayModelData.Dispose