JSMarshaller.BuildToJSPropertyGetExpression method
Builds a lambda expression for a .NET adapter to a JS property getter. When invoked, the delegate will get the property value from the JS class or instance, marshal the value from JS, and return it.
C#
public LambdaExpression BuildToJSPropertyGetExpression(PropertyInfo property)
Remarks
The expression has an extra initial argument of type JSValue that is the JS object on which the property will be accessed. For static properties that is the JS class object; for instance properties it is the JS instance. The lambda expression may be converted to a delegate with Compile.
See Also
- class JSMarshaller
- namespace Microsoft.JavaScript.NodeApi.DotNetHost