static void Main(string[] args) { RootCell rootCell = new RootCell(); rootCell.Serialize(FILENAME, rootCell); rootCell.Deserialize(FILENAME); }
static void Main(string[] args) { RootCell rootCell = new RootCell() { cells = new List <Cell>() { new Cell() { cellName = "123" }, new Cell() { cellName = "456" } } }; rootCell.Serialize(FILENAME, rootCell); RootCell readCells = rootCell.Deserialize(FILENAME); }