Skip to content

JSMarshaller.BuildToJSPropertySetExpression method

Builds a lambda expression for a .NET adapter to a JS property setter. When invoked, the delegate will marshal the value to JS and set the property on the JS class or instance.

C#
public LambdaExpression BuildToJSPropertySetExpression(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

Released under the MIT license