ImmutableArray<T>.CopyTo Method

Definition

Overloads

CopyTo(Span<T>)

Copies the elements of current ImmutableArray<T> to a Span<T>.

CopyTo(T[])

Copies the contents of this array to the specified array.

CopyTo(T[], Int32)

Copies the contents of this array to the specified array starting at the specified destination index.

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

Copies the specified items in this array to the specified array at the specified starting index.

CopyTo(Span<T>)

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

Copies the elements of current ImmutableArray<T> to a Span<T>.

public void CopyTo (Span<T> destination);

Parameters

destination
Span<T>

The Span<T> that is the destination of the elements copied from current ImmutableArray<T>.

Applies to

.NET 9 ja muud versioonid
Toode Versioonid
.NET 6 (package-provided), 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)

CopyTo(T[])

Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs

Copies the contents of this array to the specified array.

public void CopyTo (T[] destination);

Parameters

destination
T[]

The array to copy to.

Applies to

.NET 9 ja muud versioonid
Toode Versioonid
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)
UWP 10.0

CopyTo(T[], Int32)

Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs

Copies the contents of this array to the specified array starting at the specified destination index.

public void CopyTo (T[] destination, int destinationIndex);

Parameters

destination
T[]

The array to copy to.

destinationIndex
Int32

The index in array where copying begins.

Implements

Applies to

.NET 9 ja muud versioonid
Toode Versioonid
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)
UWP 10.0

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

Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs
Source:
ImmutableArray_1.Minimal.cs

Copies the specified items in this array to the specified array at the specified starting index.

public void CopyTo (int sourceIndex, T[] destination, int destinationIndex, int length);

Parameters

sourceIndex
Int32

The index of this array where copying begins.

destination
T[]

The array to copy to.

destinationIndex
Int32

The index in array where copying begins.

length
Int32

The number of elements to copy from this array.

Applies to

.NET 9 ja muud versioonid
Toode Versioonid
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6 (package-provided), 6, 7 (package-provided), 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)
UWP 10.0