Minesweeper.Board.ToLine C# (CSharp) Method

ToLine() private method

private ToLine ( int nrow ) : string
nrow int
return 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;
        }