Span2D<T>.GetColumn(Int32) Method

Definition

Gets an enumerable that traverses items in a specified column.

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

Parameters

column
Int32

The target column 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