JSMarshaller.GetToJSValueDelegate method (1 of 2)
Gets a delegate that converts from a specified type to a JS value.
C#
public Delegate GetToJSValueDelegate(Type type)
parameter | description |
---|---|
type | The type the value will be converted from. |
Exceptions
exception | condition |
---|---|
NotSupportedException | The type cannot be converted. |
Remarks
Type conversion delegates 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
JSMarshaller.GetToJSValueDelegate<T> method (2 of 2)
Gets a delegate that converts from a specified type to a JS value.
C#
public From<T> GetToJSValueDelegate<T>()
parameter | description |
---|---|
T | The type the value will be converted from. |
Exceptions
exception | condition |
---|---|
NotSupportedException | The type cannot be converted. |
Remarks
Type conversion delegates are built on demand and then cached, so it is efficient to call this method multiple times for the same type.
See Also
- delegate From<T>
- class JSMarshaller
- namespace Microsoft.JavaScript.NodeApi.DotNetHost