SpanExtensions.TryCopyTo<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to copy the contents of a given Span<T> into destination RefEnumerable<T> instance.
public static bool TryCopyTo<T> (this Span<T> span, Microsoft.Toolkit.HighPerformance.Enumerables.RefEnumerable<T> destination);
static member TryCopyTo : Span<'T> * Microsoft.Toolkit.HighPerformance.Enumerables.RefEnumerable<'T> -> bool
<Extension()>
Public Function TryCopyTo(Of T) (span As Span(Of T), destination As RefEnumerable(Of T)) As Boolean
Type Parameters
- T
The type of items in the input Span<T> instance.
Parameters
- destination
- RefEnumerable<T>
The RefEnumerable<T> instance to copy items into.
Returns
Whether or not the operation was successful.