cohtml.Net.ArrayModelData
Inherits from cohtml.Net.ModelData, IDisposable
Inherited by cohtml.Net.ListModelData
Public Functions
| Name | |
|---|---|
| void | SetTypeInfo(ref ArrayInfo arrayInfo) Updates the ArrayInfo object with the model settings. |
| virtual override bool | BindModel(IntPtr binderPtr) Bind the model of the array by reference with the registered key. |
| void | Dispose() |
Protected Functions
| Name | |
|---|---|
| void | OnBinderCallbackStatic(IntPtr binderPtr, IntPtr arrayModelKey, ulong index) |
| void | OnReaderCallbackStatic(IntPtr binderPtr, IntPtr arrayModelKey, ulong index) |
| ulong | OnGetLengthCallbackStatic(IntPtr arrayModelKey) |
| IntPtr | OnGetElementCallbackStatic(IntPtr arrayModelKey, ulong index) |
Protected Attributes
| Name | |
|---|---|
| readonly Dictionary< IntPtr, WeakReference< ArrayModelData > > | m_Instances |
Additional inherited members
Public Functions inherited from cohtml.Net.ModelData
| Name | |
|---|---|
| ElementType | DotNetTypeToCohtmlType(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
function Dispose
void Dispose()
Protected Functions Documentation
function OnBinderCallbackStatic
static void OnBinderCallbackStatic(
IntPtr binderPtr,
IntPtr arrayModelKey,
ulong index
)
function OnReaderCallbackStatic
static void OnReaderCallbackStatic(
IntPtr binderPtr,
IntPtr arrayModelKey,
ulong index
)
function OnGetLengthCallbackStatic
static ulong OnGetLengthCallbackStatic(
IntPtr arrayModelKey
)
function OnGetElementCallbackStatic
static IntPtr OnGetElementCallbackStatic(
IntPtr arrayModelKey,
ulong index
)
Protected Attributes Documentation
variable m_Instances
static readonly Dictionary< IntPtr, WeakReference< ArrayModelData > > m_Instances = new Dictionary<IntPtr, WeakReference<ArrayModelData>>();