JSMarshaller.GetToJSValueExpression method
Gets a lambda expression that converts from a specified type to a JS value.
C#
public LambdaExpression GetToJSValueExpression(Type fromType)| parameter | description |
|---|---|
| fromType | The type the value will be converted from. |
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