Bearbeiten

Freigeben über


ReadOnlySpan2D<T>.GetRow(Int32) Method

Definition

Gets an enumerable that traverses items in a specified row.

public Microsoft.Toolkit.HighPerformance.Enumerables.ReadOnlyRefEnumerable<T> GetRow (int row);
member this.GetRow : int -> Microsoft.Toolkit.HighPerformance.Enumerables.ReadOnlyRefEnumerable<'T>
Public Function GetRow (row As Integer) As ReadOnlyRefEnumerable(Of T)

Parameters

row
Int32

The target row to enumerate within the current ReadOnlySpan2D<T> instance.

Returns

A ReadOnlyRefEnumerable<T> with target items to enumerate.

Remarks

The returned ReadOnlyRefEnumerable<T> value shouldn't be used directly: use this extension in a foreach loop.

Applies to