shorthand to insert variable in string c# code example
Example 1: insert variables into string c#
string data = "Mr. Rogers";
var str = $"Hello {data}, how are you doing?";
Example 2: string interpolation
const number = 42;
const message = `The number is ${number}`;
message; // => 'The number is 42'