Однако я получаю сообщение об ошибке. Имя '/ /имя строки' не существует в текущем контексте
Код: Выделить всё
bool hitBell = bellCounter == 0;
if (hitBell)
{
string bell = "You just hit the bell for the first time.";
}
else
{
//The value "bellCounter" is another int variable not relevant here. It was created outside of the If/Else loop.
string bell = $"You just hit the bell. But, you already rang it {bellCounter} times before, you are such an impatient person";
}
string finalMessage = $"{bell}, let's hope the auditor reacts to it.";
//Here will be another line of code that increments the "bellCounter" by one.
Подробнее здесь: https://stackoverflow.com/questions/788 ... side-of-it
Мобильная версия