Class Table
Representation of tables of Value
public class Table
- Inheritance
-
Table
- Inherited Members
- Extension Methods
Constructors
Table()
public Table()
Table(string[])
public Table(string[] headers)
Parameters
headers
string[]
Table(string[], value[][])
public Table(string[] headers, value[][] rows)
Parameters
headers
string[]rows
value[][]
Properties
Headers
public string[] Headers { get; }
Property Value
- string[]
Rows
public value[][] Rows { get; }
Property Value
- value[][]
Methods
GetRow(int)
Iterate over values in given row
public IEnumerable<KeyValuePair<string, value>> GetRow(int row)
Parameters
row
int
Returns
- IEnumerable<KeyValuePair<string, value>>
GetValue(int, string)
Get the value of named column at given row
public value GetValue(int row, string col)
Parameters
Returns
- value
PackRow(int)
public value PackRow(int row)
Parameters
row
int
Returns
- value
Replace(string, int)
public string Replace(string s, int row)
Parameters
Returns
UnpackRow(value)
public static IEnumerable<KeyValuePair<string, value>> UnpackRow(value packed)
Parameters
packed
value
Returns
- IEnumerable<KeyValuePair<string, value>>