Method GetTableEntry
GetTableEntry<T>(string, TwoDimArray<T>)
Interprets the specified value as a table index, and returns the associated table entry.
public T? GetTableEntry<T>(string columnName, TwoDimArray<T> table) where T : class, ITwoDimArrayEntry, new()
Parameters
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, TwoDimArray<T>)
Interprets the specified value as a table index, and returns the associated table entry.
public T? GetTableEntry<T>(int columnIndex, TwoDimArray<T> table) where T : class, ITwoDimArrayEntry, new()
Parameters
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.