ImmutableArray<T>.CopyTo 方法

定義

多載

名稱 Description
CopyTo(Span<T>)

將電流 ImmutableArray<T> 元素複製為 Span<T>

CopyTo(T[])

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

CopyTo(T[], Int32)

從指定的目的地索引開始,將這個數位的內容複製到指定的陣列。

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

將這個陣列中的指定項目複製到指定起始索引處的指定數位。

CopyTo(Span<T>)

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

將電流 ImmutableArray<T> 元素複製為 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> 是從當前 ImmutableArray<T>複製元素的目的地。

適用於

CopyTo(T[])

來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.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.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs

從指定的目的地索引開始,將這個數位的內容複製到指定的陣列。

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)

參數

destination
T[]

要複製到的陣列。

destinationIndex
Int32

複製開始的索引 destination

實作

適用於

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

來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.cs
來源:
ImmutableArray_1.Minimal.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

複製開始的索引 destination

length
Int32

從這個陣列複製的元素數量。

適用於