JSMarshaller.BuildToJSFunctionExpression method
Builds a lambda expression for a .NET adapter to a JS function that is callable as a .NET delegate. When invoked, the adapter will marshal the arguments to JS, invoke the JS function, then marshal the return value (or exception) back to .NET.
C#
public LambdaExpression BuildToJSFunctionExpression(MethodInfo method)
Remarks
The expression has an extra initial argument of type JSValue that is the JS function that will be invoked. The lambda expression may be converted to a delegate with Compile.
See Also
- class JSMarshaller
- namespace Microsoft.JavaScript.NodeApi.DotNetHost