ReadOnlyRefEnumerable<T>.TryCopyTo 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.
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
Returns
Whether or not the operation was successful.