Method GetTableEntry
GetTableEntry<T>(int, string, TwoDimArray<T>)
Interprets the specified value as a table index, and returns the associated table entry.
public T? GetTableEntry<T>(int rowIndex, string columnName, TwoDimArray<T> table) where T : class, ITwoDimArrayEntry, new()
Parameters
rowIndexintThe index of the row to query.
columnNamestringThe name/label of the column to query.
tableTwoDimArray<T>The table that should be used to resolve the value.
Returns
- T
The associated value, otherwise the default array entry value (typically null)
Type Parameters
TThe type of table entry.
GetTableEntry<T>(int, int, TwoDimArray<T>)
Interprets the specified value as a table index, and returns the associated table entry.
public T? GetTableEntry<T>(int rowIndex, int columnIndex, TwoDimArray<T> table) where T : class, ITwoDimArrayEntry, new()
Parameters
rowIndexintThe index of the row to query.
columnIndexintThe index of the column to query.
tableTwoDimArray<T>The table that should be used to resolve the value.
Returns
- T
The associated value, otherwise the default array entry value (typically null)
Type Parameters
TThe type of table entry.