示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }