c# string format or interpolation 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'