Show / Hide Table of Contents

Class Base1JaggedList<T>

Represents a jagged 1-based collection of Base1List<T>, useful for table-like structures.

Inheritance
object
Base1JaggedList<T>
Implements
IReadOnlyList<Base1List<T>>
IReadOnlyCollection<Base1List<T>>
IEnumerable<Base1List<T>>
IEnumerable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: CoverageKiller2.DOM.Tables
Assembly: CoverageKiller2.dll
Syntax
public class Base1JaggedList<T> : IReadOnlyList<Base1List<T>>, IReadOnlyCollection<Base1List<T>>, IEnumerable<Base1List<T>>, IEnumerable
Type Parameters
Name Description
T

The element type of the inner lists.

Remarks

Version: CK2.00.01.0037

Constructors

Base1JaggedList()

Declaration
public Base1JaggedList()

Base1JaggedList(List<List<T>>)

Declaration
public Base1JaggedList(List<List<T>> list)
Parameters
Type Name Description
List<List<T>> list

Properties

Count

Declaration
public int Count { get; }
Property Value
Type Description
int

this[int]

Declaration
public Base1List<T> this[int index] { get; }
Parameters
Type Name Description
int index
Property Value
Type Description
Base1List<T>

LargestRow

Returns the largest column count across all rows.

Declaration
public Base1List<T> LargestRow { get; }
Property Value
Type Description
Base1List<T>

LargestRowCount

Returns the largest column count across all rows.

Declaration
public int LargestRowCount { get; }
Property Value
Type Description
int

Methods

Add(Base1List<T>)

Declaration
public void Add(Base1List<T> row)
Parameters
Type Name Description
Base1List<T> row

DumpGrid(Func<T, string>, string)

Dumps the contents of a Base1JaggedList<T>, projecting each cell through a delegate.

Declaration
public string DumpGrid(Func<T, string> projector, string message = null)
Parameters
Type Name Description
Func<T, string> projector

A projection function to convert each cell to a string.

string message

Optional label for the dump output.

Returns
Type Description
string

A formatted string of the dumped grid.

Flatten()

Flattens all inner lists into a single sequence of elements.

Declaration
public IEnumerable<T> Flatten()
Returns
Type Description
IEnumerable<T>

GetEnumerator()

Declaration
public IEnumerator<Base1List<T>> GetEnumerator()
Returns
Type Description
IEnumerator<Base1List<T>>

IndexOf(Base1List<T>)

Declaration
public int IndexOf(Base1List<T> row)
Parameters
Type Name Description
Base1List<T> row
Returns
Type Description
int

Insert(int, Base1List<T>)

Declaration
public void Insert(int index, Base1List<T> row)
Parameters
Type Name Description
int index
Base1List<T> row

RemoveAt(int)

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
int index

SafeGet(int, int)

Declaration
public T SafeGet(int row, int col)
Parameters
Type Name Description
int row
int col
Returns
Type Description
T

SelectMany<TResult>(Func<T, IEnumerable<TResult>>)

Projects each element of each inner list and flattens the result.

Declaration
public IEnumerable<TResult> SelectMany<TResult>(Func<T, IEnumerable<TResult>> selector)
Parameters
Type Name Description
Func<T, IEnumerable<TResult>> selector
Returns
Type Description
IEnumerable<TResult>
Type Parameters
Name Description
TResult

Implements

IReadOnlyList<T>
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable

Extension Methods

PingService.PingPong<T>(T, string)
PingService.PingPong<T>(T, string, string)
PingService.PingPong<T, TResult>(T, Func<TResult>, string, string)
PingService.Ping<T>(T, string)
PingService.Ping<T>(T, string, string)
PingService.Ping<T>(T, Type[], string)
PingService.Pong<T>(T, string)
PingService.Pong<T>(T, string, string)
PingService.Pong<T>(T, Type, string)
PingService.Pong<T>(T, Type[], string)
PingService.Pong<T, TResult>(T, Func<TResult>, string, string)
In this article
Back to top Generated by DocFX