f strings c sharp code example Example: f string C# string name = "John" Console.WriteLine($"Hello {name}")