Modifica

Condividi tramite


ReadOnlyRefEnumerable<T>.CopyTo Method

Definition

Overloads

CopyTo(RefEnumerable<T>)

Copies the contents of this ReadOnlyRefEnumerable<T> into a destination RefEnumerable<T> instance.

CopyTo(Span<T>)

Copies the contents of this RefEnumerable<T> into a destination Span<T> instance.

CopyTo(RefEnumerable<T>)

Copies the contents of this ReadOnlyRefEnumerable<T> into a destination RefEnumerable<T> instance.

public void CopyTo (Microsoft.Toolkit.HighPerformance.Enumerables.RefEnumerable<T> destination);
member this.CopyTo : Microsoft.Toolkit.HighPerformance.Enumerables.RefEnumerable<'T> -> unit
Public Sub CopyTo (destination As RefEnumerable(Of T))

Parameters

destination
RefEnumerable<T>

The destination RefEnumerable<T> instance.

Exceptions

Thrown when destination is shorter than the source ReadOnlyRefEnumerable<T> instance.

Applies to

CopyTo(Span<T>)

Copies the contents of this RefEnumerable<T> into a destination Span<T> instance.

public void CopyTo (Span<T> destination);
member this.CopyTo : Span<'T> -> unit
Public Sub CopyTo (destination As Span(Of T))

Parameters

destination
Span<T>

The destination Span<T> instance.

Exceptions

Thrown when destination is shorter than the source RefEnumerable<T> instance.

Applies to