ImmutableList<T>.Builder.CopyTo Method

Definition

Overloads

CopyTo(T[])

Copies the entire immutable list to a compatible one-dimensional array, starting at the beginning of the target array.

CopyTo(T[], Int32)

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

CopyTo(Int32, T[], Int32, Int32)

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

CopyTo(T[])

Copies the entire immutable list to a compatible one-dimensional array, starting at the beginning of the target array.

public:
 void CopyTo(cli::array <T> ^ array);
public void CopyTo (T[] array);
member this.CopyTo : 'T[] -> unit
Public Sub CopyTo (array As T())

Parameters

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.

CopyTo(T[], Int32)

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

public:
 virtual void CopyTo(cli::array <T> ^ array, int arrayIndex);
public void CopyTo (T[] array, int arrayIndex);
abstract member CopyTo : 'T[] * int -> unit
override this.CopyTo : 'T[] * int -> unit
Public Sub CopyTo (array As T(), arrayIndex As Integer)

Parameters

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
Int32

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

Implements

CopyTo(Int32, T[], Int32, Int32)

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

public:
 void CopyTo(int index, cli::array <T> ^ array, int arrayIndex, int count);
public void CopyTo (int index, T[] array, int arrayIndex, int count);
member this.CopyTo : int * 'T[] * int * int -> unit
Public Sub CopyTo (index As Integer, array As T(), arrayIndex As Integer, count As Integer)

Parameters

index
Int32

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

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
Int32

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

count
Int32

The number of elements to copy.

Applies to