Rediger

Del via


ImmutableArray<T>.CopyTo Method

Definition

Overloads

CopyTo(Span<T>)

Copies the elements of current ImmutableArray<T> to a Span<T>.

CopyTo(T[])

Copies the contents of this array to the specified array.

CopyTo(T[], Int32)

Copies the contents of this array to the specified array starting at the specified destination index.

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

Copies the specified items in this array to the specified array at the specified starting index.

CopyTo(Span<T>)

Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs
Source:
ImmutableArray_1.cs

Copies the elements of current ImmutableArray<T> to a Span<T>.

public:
 void CopyTo(Span<T> destination);
public void CopyTo (Span<T> destination);
member this.CopyTo : Span<'T> -> unit
Public Sub CopyTo (destination As Span(Of T))

Parameters

destination
Span<T>

The Span<T> that is the destination of the elements copied from current ImmutableArray<T>.

Applies to

CopyTo(T[])

Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs

Copies the contents of this array to the specified array.

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

Parameters

destination
T[]

The array to copy to.

Applies to

CopyTo(T[], Int32)

Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs

Copies the contents of this array to the specified array starting at the specified destination index.

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

Parameters

destination
T[]

The array to copy to.

destinationIndex
Int32

The index in array where copying begins.

Implements

Applies to

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

Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs

Copies the specified items in this array to the specified array at the specified starting index.

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

Parameters

sourceIndex
Int32

The index of this array where copying begins.

destination
T[]

The array to copy to.

destinationIndex
Int32

The index in array where copying begins.

length
Int32

The number of elements to copy from this array.

Applies to