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