編集

次の方法で共有


ImmutableArray<T>.Builder.CopyTo Method

Definition

Overloads

CopyTo(Span<T>)

Copies the current contents to the specified Span<T>.

CopyTo(T[])

Copies the contents of this array to the specified array.

CopyTo(T[], Int32)

Copies the current contents to the specified array.

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

Copies the contents of this array to the specified array.

CopyTo(Span<T>)

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

Copies the current contents to the specified 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> to copy to.

Applies to

CopyTo(T[])

Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.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.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs
Source:
ImmutableArray_1.Builder.cs

Copies the current contents to the specified array.

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

Parameters

array
T[]

The array to copy to.

index
Int32

The index to start the copy operation.

Implements

Applies to

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

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

Copies the contents of this array to the specified array.

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 into this collection of the first element to copy.

destination
T[]

The array to copy to.

destinationIndex
Int32

The index into the destination array to which the first copied element is written.

length
Int32

The number of elements to copy.

Applies to