<分区>
根据 New Features in C# 6 ,您应该能够这样声明字符串:
var name = "world";
WriteLine("hello, \{name}");
对于输出:
hello, world
我创建了一个新的控制台应用程序,将 Target Framework 设置为 .NET Framework 4.6,但出现错误“Unrecognized Escape Sequence”
我正在使用 Visual Studio Ultimate 2015 CTP 版本 14.0.22512.0 DP