Skip to content

JSMarshaller.BuildFromJSPropertySetExpression method

Builds a lambda expression for a JS callback adapter to a .NET property setter. When invoked, the delegate will marshal the value from JS and set the property.

C#
public Expression<JSCallback> BuildFromJSPropertySetExpression(PropertyInfo property)

Remarks

The returned expression takes a single JSCallbackArgs parameter and returns a JSValue. For instance methods, the this argument for the JS callback args must be a JS object that wraps a .NET object matching the property's declaring type. The lambda expression may be converted to a JSCallback delegate with Compile.

See Also

Released under the MIT license