ReadOnlyRefEnumerable<T>.CopyTo 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
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
Exceptions
Thrown when destination
is shorter than the source RefEnumerable<T> instance.