ImmutableArray<T>.Builder.CopyTo 方法

定義

多載

CopyTo(Span<T>)

將目前的內容複製到指定的 Span<T>

CopyTo(T[])

將這個陣列的內容複製到指定的陣列。

CopyTo(T[], Int32)

將目前的內容複製至指定的陣列。

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

將這個陣列的內容複製到指定的陣列。

CopyTo(Span<T>)

來源:
ImmutableArray_1.Builder.cs
來源:
ImmutableArray_1.Builder.cs
來源:
ImmutableArray_1.Builder.cs

將目前的內容複製到指定的 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))

參數

destination
Span<T>

Span<T> 複製到其中的 。

適用於

CopyTo(T[])

來源:
ImmutableArray_1.Builder.cs
來源:
ImmutableArray_1.Builder.cs
來源:
ImmutableArray_1.Builder.cs

將這個陣列的內容複製到指定的陣列。

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

參數

destination
T[]

要複製到其中的陣列。

適用於

CopyTo(T[], Int32)

來源:
ImmutableArray_1.Builder.cs
來源:
ImmutableArray_1.Builder.cs
來源:
ImmutableArray_1.Builder.cs

將目前的內容複製至指定的陣列。

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)

參數

array
T[]

要複製到其中的陣列。

index
Int32

開始複製作業的索引。

實作

適用於

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

來源:
ImmutableArray_1.Builder.cs
來源:
ImmutableArray_1.Builder.cs
來源:
ImmutableArray_1.Builder.cs

將這個陣列的內容複製到指定的陣列。

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)

參數

sourceIndex
Int32

要複製之第一個元素集合中的索引。

destination
T[]

要複製到其中的陣列。

destinationIndex
Int32

索引會寫入第一個複製專案的目的地陣列。

length
Int32

要複製的項目數目。

適用於