Как использовать экземпляр класса в списке

var cell = new List<Cell>(4);
cell.Add(new Cell() { id = 1, name = "Фаер бол", res = false, use = true });
WriteLine(cell[0]);
class Cell
{
    public int id { get; set; }
    public string name { get; set; }
    public bool res { get; set; }
    public bool use { get; set; }
}

выводит: inventory_DEMO.Cell


Ответы (0 шт):