value in string c# code example Example: insert variables into string c# string data = "Mr. Rogers"; var str = $"Hello {data}, how are you doing?";