Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ImmutableList<T>::CopyTo Method (Int32, array<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:
virtual void CopyTo(
	int index,
	array<T>^ array,
	int arrayIndex,
	int count
) sealed

Parameters

index
Type: System::Int32

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

array
Type: array<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:
© 2017 Microsoft