string interpolatino code example
Example 1: f string C#
string name = "John"
Console.WriteLine($"Hello {name}")
Example 2: string interpolation
const number = 42;
const message = `The number is ${number}`;
message; // => 'The number is 42'
string name = "John"
Console.WriteLine($"Hello {name}")
const number = 42;
const message = `The number is ${number}`;
message; // => 'The number is 42'