Syntax
Use $ before a string and {expression} inside.
string name = "World";Console.WriteLine($"Hello {name}");Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”Hello WorldUse $ before a string and {expression} inside.
string name = "World";Console.WriteLine($"Hello {name}");dotnet runHello World