JSMarshaller.GetFromJSValueExpression method
Gets a lambda expression that converts from a JS value to a specified type.
C#
public LambdaExpression GetFromJSValueExpression(Type toType)| parameter | description |
|---|---|
| toType | The type the value will be converted to. |
Exceptions
| exception | condition |
|---|---|
| NotSupportedException | The 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
- class JSMarshaller
- namespace Microsoft.JavaScript.NodeApi.DotNetHost