Skip to content

JSSet.As<T> method

Tries to create a T struct from this instance. It returns null if the T struct cannot be created.

C#
public T? As<T>()
    where T : struct, IJSValue<T>
parameterdescription
TA struct that implements IJSValue interface.

Return Value

Nullable value that contains T struct if it was successfully created or null if it was failed.

See Also

Released under the MIT license