IJsLazyAccessor<TValue> Interface

Creates the functions of a lazy accessor property (IJsAdapter<TValue>.DefineLazyAccessorProperty): one object per property, which the adapter can give to the engine as the state of shared callbacks, instead of closures and their delegates.

public interface IJsLazyAccessor<TValue> where TValue : class

Type parameters

TValue
The type of the JavaScript values of the engine.

Methods

NameDescription
CreateGetter()Creates the getter of the property.
CreateSetter()Creates the setter of the property (only called when the property has a setter).

CreateGetter()

Creates the getter of the property.

TValue CreateGetter()

Returns

TValue

CreateSetter()

Creates the setter of the property (only called when the property has a setter).

TValue CreateSetter()

Returns

TValue