JSTypedArray<T>.As<TOther> method
Tries to create a T struct from this instance. It returns null if the T struct cannot be created.
C#
public TOther? As<TOther>()
where TOther : struct, IJSValue<TOther>| parameter | description |
|---|---|
| TOther | A 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
- interface IJSValue<TSelf>
- struct JSTypedArray<T>
- namespace Microsoft.JavaScript.NodeApi