cohtml.Net.ModelData

Information about the data binding model.

Inherits from IDisposable

Inherited by cohtml.Net.ArrayModelData

Public Functions

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()

Protected Functions

Name
virtual voidDispose(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:

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