C# using variables inside strings code example Example: C# using variables inside strings string name = "John"; string result = $"Hello {name}";