Table of Contents

Class Array2DRowSlice<T>

Namespace
Tlabs.Misc
Assembly
Tlabs.Core.dll

Row slice of an 2D array of T.

public class Array2DRowSlice<T> : IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable

Type Parameters

T
Inheritance
Array2DRowSlice<T>
Implements
Inherited Members
Extension Methods

Constructors

Array2DRowSlice(T[,], int)

Ctor from data and row.

public Array2DRowSlice(T[,] data, int row)

Parameters

data T[,]
row int

Properties

Count

data.GetLength(1)

public int Count { get; }

Property Value

int

this[int]

Index into row.

public T this[int index] { get; }

Parameters

index int

Property Value

T

Methods

GetEnumerator()

Row values enumeration

public IEnumerator<T> GetEnumerator()

Returns

IEnumerator<T>

Explicit Interface Implementations

IEnumerable.GetEnumerator()

IEnumerator IEnumerable.GetEnumerator()

Returns

IEnumerator