編輯

共用方式為


Span2D<T>.TryCopyTo Method

Definition

Overloads

TryCopyTo(Span2D<T>)

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

TryCopyTo(Span<T>)

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

TryCopyTo(Span2D<T>)

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

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

Parameters

destination
Span2D<T>

The target Span2D<T> of the copy operation.

Returns

Whether or not the operation was successful.

Applies to

TryCopyTo(Span<T>)

Attempts to copy the current Span2D<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