Skip to content

JSMarshaller.GetFromJSValueDelegate method (1 of 2) ​

Gets a delegate that converts from a JS value to a specified type.

C#
public Delegate GetFromJSValueDelegate(Type type)
parameterdescription
typeThe type the value will be converted to.

Exceptions ​

exceptioncondition
NotSupportedExceptionThe type cannot be converted.

Remarks ​

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

See Also ​


JSMarshaller.GetFromJSValueDelegate<T> method (2 of 2) ​

Gets a delegate that converts from a JS value to a specified type.

C#
public To<T> GetFromJSValueDelegate<T>()
parameterdescription
TThe type the value will be converted to.

Exceptions ​

exceptioncondition
NotSupportedExceptionThe type cannot be converted.

Remarks ​

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

See Also ​

Released under the MIT license