ImmutableArray<T>.CopyTo 方法

定義

多載

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<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

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

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

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

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

array 中開始複製處的索引。

實作

適用於

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

來源:
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

array 中開始複製處的索引。

length
Int32

要複製到這個陣列的項目數。

適用於