Пример #1
0
        public Cell this[int row, int column]
        {
            get
            {
                if (row < 0 || row >= Rows || column < 0 || column >= Columns)
                {
                    return(null);
                }

                if (_cells[row, column] is null)
                {
                    _cells[row, column] = Cell.CreateDead();
                }

                return(_cells[row, column]);
            }
        }