Interpolated Strings cause the code to lose all syntax formatting. Removing the $ and just using boring strings works.
This works:
Console.WriteLine("I created a key named" + newKey.Name +
"Is it enabled?" + newKey.IsEnabled);
This doesn't:
Console.WriteLine($"I created a key named {newKey.Name}. " +
$"Is it enabled? {newKey.IsEnabled}");
Interpolated Strings cause the code to lose all syntax formatting. Removing the
$and just using boring strings works.This works:
This doesn't: