Click or drag to resize

ReadOnlySpanTCopyTo(T, Int32) Method

Copies the contents of this span into a destination array.

Namespace: System
Assembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
Syntax
public void CopyTo(
	T[] destination,
	int destinationIndex = 0
)

Parameters

destination  T
The target array.
destinationIndex  Int32  (Optional)
Index in destination at which copying begins.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when destination is .
ArgumentOutOfRangeException Thrown when destinationIndex is negative or greater than the length of destination.
ArgumentException Thrown when the destination array does not have enough capacity from destinationIndex to hold all elements.
See Also