Skip to content

JSMarshaller.GetFromJSValueExpression method

Gets a lambda expression that converts from a JS value to a specified type.

C#
public LambdaExpression GetFromJSValueExpression(Type toType)
parameterdescription
toTypeThe type the value will be converted to.

Exceptions

exceptioncondition
NotSupportedExceptionThe type cannot be converted.

Remarks

Type conversion expressions are built on demand and then cached, so it is efficient to call this method multiple times for the same type.

See Also

Released under the MIT license