JSArray.CopyTo method (1 of 2)
C#
public void CopyTo(JSValue[] array, int arrayIndex)See Also
- struct JSValue
- struct JSArray
- namespace Microsoft.JavaScript.NodeApi
JSArray.CopyTo<T> method (2 of 2)
Copies array elements to a destination array, converting each element from JS values using a conversion delegate.
C#
public void CopyTo<T>(T[] array, int arrayIndex, To<T> fromJS)| parameter | description |
|---|---|
| array | Destination array. |
| arrayIndex | Starting index in the destination array. |
| fromJS | Delegate that converts from JS value to array element type. |
See Also
- delegate To<T>
- struct JSArray
- namespace Microsoft.JavaScript.NodeApi