I'm trying to write
$"This is { awesomeEnough ? "awesome" : "not awesome"}"
but I'm getting compiler error
CS1003 Syntax error, ':' expected
is it expecting behavior or bug?
I'm trying to write
$"This is { awesomeEnough ? "awesome" : "not awesome"}"
but I'm getting compiler error
CS1003 Syntax error, ':' expected
is it expecting behavior or bug?
Operator priority. Parenthesis should solve the problem
$"This is { (awesomeEnough ? "awesome" : "not awesome") }"