Span2D<T>.GetRow(Int32) Method

Definition

Gets an enumerable that traverses items in a specified row.

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

Parameters

row
Int32

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

Returns

A RefEnumerable<T> with target items to enumerate.

Remarks

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

Applies to