Skip to content

JSArray Explicit operator (1 of 4)

C#
public static explicit operator JSArray(JSIterable obj)

See Also


JSArray Explicit operator (2 of 4)

C#
public static explicit operator JSArray(JSObject obj)

See Also


JSArray Explicit operator (3 of 4)

Explicitly converts a JSValue to a nullable JSArray.

C#
public static explicit operator JSArray?(JSValue value)
parameterdescription
valueThe JSValue to convert.

Return Value

The JSArray if it was successfully created or null if it was failed.

See Also


JSArray Explicit operator (4 of 4)

Explicitly converts a JSValue to a JSArray.

C#
public static explicit operator JSArray(JSValue value)
parameterdescription
valueThe JSValue to convert.

Return Value

JSArray struct created based on this JSValue.

Exceptions

exceptioncondition
InvalidCastExceptionThrown when the T struct cannot be created based on this JSValue.

See Also

Released under the MIT license