ImmutableArray<T>.CopyTo Metod

Definition

Överlagringar

Name Description
CopyTo(Span<T>)

Kopierar elementen i aktuell ImmutableArray<T> till en Span<T>.

CopyTo(T[])

Kopierar innehållet i den här matrisen till den angivna matrisen.

CopyTo(T[], Int32)

Kopierar innehållet i den här matrisen till den angivna matrisen med början vid det angivna målindexet.

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

Kopierar de angivna objekten i den här matrisen till den angivna matrisen vid det angivna startindexet.

CopyTo(Span<T>)

Källa:
ImmutableArray_1.cs
Källa:
ImmutableArray_1.cs
Källa:
ImmutableArray_1.cs
Källa:
ImmutableArray_1.cs
Källa:
ImmutableArray_1.cs
Källa:
ImmutableArray_1.cs

Kopierar elementen i aktuell ImmutableArray<T> till en 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))

Parametrar

destination
Span<T>

Det Span<T> är målet för de element som kopieras från den aktuella ImmutableArray<T>.

Gäller för

CopyTo(T[])

Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs

Kopierar innehållet i den här matrisen till den angivna matrisen.

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

Parametrar

destination
T[]

Matrisen som ska kopieras till.

Gäller för

CopyTo(T[], Int32)

Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs

Kopierar innehållet i den här matrisen till den angivna matrisen med början vid det angivna målindexet.

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)

Parametrar

destination
T[]

Matrisen som ska kopieras till.

destinationIndex
Int32

Indexet där destination kopieringen börjar.

Implementeringar

Gäller för

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

Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs
Källa:
ImmutableArray_1.Minimal.cs

Kopierar de angivna objekten i den här matrisen till den angivna matrisen vid det angivna startindexet.

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)

Parametrar

sourceIndex
Int32

Indexet för den här matrisen där kopieringen börjar.

destination
T[]

Matrisen som ska kopieras till.

destinationIndex
Int32

Indexet där destination kopieringen börjar.

length
Int32

Antalet element som ska kopieras från den här matrisen.

Gäller för