static void Main(string[] args) { ArrayList board = new ArrayList(); for (int row = 1; row < 9; row++) for (char col = 'a'; col < 'k'; col++) { BoardSpace b = new BoardSpace(); b.Row = row; b.Column = col; board.Add(b); } foreach (var item in board) Console.WriteLine(item); }
static void Main(string[] args) { ArrayList board = new ArrayList(); for (int row = 1; row < 9; row++) { for (char col = 'a'; col < 'k'; col++) { BoardSpace b = new BoardSpace(); b.Row = row; b.Column = col; board.Add(b); } } foreach (var item in board) { Console.WriteLine(item); } }