cohtml.Net.ArrayModelData

Inherits from cohtml.Net.ModelData, IDisposable

Inherited by cohtml.Net.ListModelData

Public Functions

Name
voidSetTypeInfo(ref ArrayInfo arrayInfo)
Updates the ArrayInfo object with the model settings.
virtual override boolBindModel(IntPtr binderPtr)
Bind the model of the array by reference with the registered key.

Protected Functions

Name
voidOnBinderCallbackStatic(IntPtr binderPtr, IntPtr arrayModelKey, UIntPtr index)
voidOnReaderCallbackStatic(IntPtr binderPtr, IntPtr arrayModelKey, UIntPtr index)
ulongOnGetLengthCallbackStatic(IntPtr arrayModelKey)
IntPtrOnGetElementCallbackStatic(IntPtr arrayModelKey, UIntPtr index)
virtual override voidDispose(bool disposing)

Protected Attributes

Name
readonly Dictionary< IntPtr, WeakReference< ArrayModelData > >m_Instances

Additional inherited members

Public Functions inherited from cohtml.Net.ModelData

Name
ElementTypeDotNetTypeToCohtmlType(string typeName)
Convert .Net type name to Cohtml type name

Public Functions Documentation

function SetTypeInfo

void SetTypeInfo(
    ref ArrayInfo arrayInfo
)

Updates the ArrayInfo object with the model settings.

Parameters:

  • arrayInfo The object to be updated.

function BindModel

virtual override bool BindModel(
    IntPtr binderPtr
)

Bind the model of the array by reference with the registered key.

Parameters:

  • binderPtr A pointer to the binder where the object is registered.

Return: True if the model is successfully registered, otherwise False.

Reimplements: cohtml.Net.ModelData.BindModel

Protected Functions Documentation

function OnBinderCallbackStatic

static void OnBinderCallbackStatic(
    IntPtr binderPtr,
    IntPtr arrayModelKey,
    UIntPtr index
)

function OnReaderCallbackStatic

static void OnReaderCallbackStatic(
    IntPtr binderPtr,
    IntPtr arrayModelKey,
    UIntPtr index
)

function OnGetLengthCallbackStatic

static ulong OnGetLengthCallbackStatic(
    IntPtr arrayModelKey
)

function OnGetElementCallbackStatic

static IntPtr OnGetElementCallbackStatic(
    IntPtr arrayModelKey,
    UIntPtr index
)

function Dispose

virtual override void Dispose(
    bool disposing
)

Reimplements: cohtml.Net.ModelData.Dispose

Protected Attributes Documentation

variable m_Instances

static readonly Dictionary< IntPtr, WeakReference< ArrayModelData > > m_Instances = new Dictionary<IntPtr, WeakReference<ArrayModelData>>();