public static List<Table> AllTables= new List<Table>();
public class Table
{
public int id { get; set; }
public string name { get; set; }
public Table () { }
public Table (int id, string name)
{
this.id = id;
this.name = name;
}
}
foreach (Table a in main.AllTables)
{
if(a.id == 1)
{
API.consoleOutput("Result: " + a.name);
}
}
public Table () { }
public Table (int id, string name)
{
this.id = id;
this.name = name;
foreach (Table a in main.AllTables)
{
if(a.id == 1)
{
API.consoleOutput("Result: " + a.name);
}
}
}
}