C Sharp - String

Substitutions

1
2
var resource=$"Hello {name}!"; 
var resource=$"Hello {name}, you have {count} new messages.";

will embed the values of the variable ‘name’ and ‘count’ into the string being declared.