Muokkaa

Jaa


ImmutableList<T>.CopyTo Method

Definition

Overloads

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 a range of elements from the 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.

CopyTo(T[], Int32)

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

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

Applies to

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

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

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

public:
 virtual void CopyTo(int index, cli::array <T> ^ array, int arrayIndex, int count);
public:
 void CopyTo(int index, cli::array <T> ^ array, int arrayIndex, int count);
public void CopyTo (int index, T[] array, int arrayIndex, int count);
abstract member CopyTo : int * 'T[] * int * int -> unit
override this.CopyTo : int * 'T[] * int * int -> unit
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

CopyTo(T[])

Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs
Source:
ImmutableList_1.cs

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

public:
 virtual void CopyTo(cli::array <T> ^ array);
public:
 void CopyTo(cli::array <T> ^ array);
public void CopyTo (T[] array);
abstract member CopyTo : 'T[] -> unit
override this.CopyTo : 'T[] -> unit
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.

Applies to