Minesweeper.Board.ToLine C# (CSharp) 메소드

ToLine() 개인적인 메소드

private ToLine ( int nrow ) : string
nrow int
리턴 string
        private string ToLine(int nrow)
        {
            string result = string.Empty;

            for (int j = 0; j < this.ncols; j++)
            {
                char ch = this.cells[nrow, j];

                if (ch == 0)
                    result += '*';
                else
                    result += ch;
            }

            return result;
        }