public static ConfigState.Table GetTable(ConfigState configState, Int64 tableID) { foreach (var table in configState.tables) { if (table.tableID == tableID) return table; } return null; }