Skip to content

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)
parameterdescription
typeThe type the value will be converted from.

Exceptions

exceptioncondition
NotSupportedExceptionThe 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


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>()
parameterdescription
TThe type the value will be converted from.

Exceptions

exceptioncondition
NotSupportedExceptionThe 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

Released under the MIT license