Skip to content
SiteEmail

cohtml.Net.ArrayModelData

Inherits from cohtml.Net.ModelData, IDisposable

Inherited by cohtml.Net.ListModelData

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.
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)
Name
readonly Dictionary< IntPtr, WeakReference< ArrayModelData > >m_Instances

Public Functions inherited from cohtml.Net.ModelData

Name
ElementTypeDotNetTypeToCohtmlType(string typeName)
Convert .Net type name to Cohtml type name
void SetTypeInfo(
ref ArrayInfo arrayInfo
)

Updates the ArrayInfo object with the model settings.

Parameters:

  • arrayInfo The object to be updated.
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

static void OnBinderCallbackStatic(
IntPtr binderPtr,
IntPtr arrayModelKey,
UIntPtr index
)
static void OnReaderCallbackStatic(
IntPtr binderPtr,
IntPtr arrayModelKey,
UIntPtr index
)
static ulong OnGetLengthCallbackStatic(
IntPtr arrayModelKey
)
static IntPtr OnGetElementCallbackStatic(
IntPtr arrayModelKey,
UIntPtr index
)
virtual override void Dispose(
bool disposing
)

Reimplements: cohtml.Net.ModelData.Dispose

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