ImmutableList<T>.CopyTo Method (Int32, T[], Int32, Int32)

 

Copies a range of elements from the immutable list to a compatible one-dimensional array, starting at the specified index of the target array.

Namespace:   System.Collections.Immutable
Assembly:  System.Collections.Immutable (in System.Collections.Immutable.dll)

public void CopyTo(
	int index,
	T[] array,
	int arrayIndex,
	int count
)

Parameters

index
Type: System.Int32

The zero-based index in the source immutable list at which copying begins.

array
Type: T[]

The one-dimensional array that is the destination of the elements copied from the immutable list. The array must have zero-based indexing.

arrayIndex
Type: System.Int32

The zero-based index in array at which copying begins.

count
Type: System.Int32

The number of elements to copy.

Return to top
Show: