Bearbeiten

Freigeben über


ReadOnlyRefEnumerable<T>.TryCopyTo Method

Definition

Overloads

TryCopyTo(RefEnumerable<T>)

Attempts to copy the current ReadOnlyRefEnumerable<T> instance to a destination RefEnumerable<T>.

TryCopyTo(Span<T>)

Attempts to copy the current RefEnumerable<T> instance to a destination Span<T>.

TryCopyTo(RefEnumerable<T>)

Attempts to copy the current ReadOnlyRefEnumerable<T> instance to a destination RefEnumerable<T>.

public bool TryCopyTo (Microsoft.Toolkit.HighPerformance.Enumerables.RefEnumerable<T> destination);
member this.TryCopyTo : Microsoft.Toolkit.HighPerformance.Enumerables.RefEnumerable<'T> -> bool
Public Function TryCopyTo (destination As RefEnumerable(Of T)) As Boolean

Parameters

destination
RefEnumerable<T>

The target RefEnumerable<T> of the copy operation.

Returns

Whether or not the operation was successful.

Applies to

TryCopyTo(Span<T>)

Attempts to copy the current RefEnumerable<T> instance to a destination Span<T>.

public bool TryCopyTo (Span<T> destination);
member this.TryCopyTo : Span<'T> -> bool
Public Function TryCopyTo (destination As Span(Of T)) As Boolean

Parameters

destination
Span<T>

The target Span<T> of the copy operation.

Returns

Whether or not the operation was successful.

Applies to