Auf Englisch lesen Bearbeiten

Freigeben über


FrozenSet<T>.CopyTo Method

Definition

Overloads

CopyTo(Span<T>)

Copies the values in the set to a span.

CopyTo(T[], Int32)

Copies the values in the set to an array, starting at the specified destinationIndex.

CopyTo(Span<T>)

Source:
FrozenSet.cs
Source:
FrozenSet.cs
Source:
FrozenSet.cs

Copies the values in the set to a span.

C#
public void CopyTo(Span<T> destination);

Parameters

destination
Span<T>

The span that is the destination of the values copied from the set.

Applies to

.NET 10 und andere Versionen
Produkt Versionen
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

CopyTo(T[], Int32)

Source:
FrozenSet.cs
Source:
FrozenSet.cs
Source:
FrozenSet.cs

Copies the values in the set to an array, starting at the specified destinationIndex.

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

Parameters

destination
T[]

The array that is the destination of the values copied from the set.

destinationIndex
Int32

The zero-based index in destination at which copying begins.

Implements

Applies to

.NET 10 und andere Versionen
Produkt Versionen
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)