String Interpolation
String interpolation embeds expressions inside a string using $ and {}.
string name = "Alice";int age = 30;Console.WriteLine($"Name: {name}, Age: {age}");Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”Name: Alice, Age: 30