Skip to content

JSMarshaller.FromJS method (1 of 2)

Converts from a JS value to a specified type.

C#
public object FromJS(Type type, JSValue value)
parameterdescription
typeThe type the value will be converted to.
valueThe JavaScript value to be converted.

Exceptions

exceptioncondition
NotSupportedExceptionThe type cannot be converted.

See Also


JSMarshaller.FromJS<T> method (2 of 2)

Converts from a JS value to a specified type.

C#
public T FromJS<T>(JSValue value)
parameterdescription
TThe type the value will be converted to.
valueThe JavaScript value to be converted.

Exceptions

exceptioncondition
NotSupportedExceptionThe type cannot be converted.

See Also

Released under the MIT license