C# 6.0 的新语法之一 – 字符串 插值 Interpolation

(VS2015) C# 6.0 有很多新语法 比如这个字符串插值则是我比较喜欢的之一. 这替代以前的 string.format 方法. 比如下面的程序 using System; namespace ConsoleApplication5 { class Program { static void Main(string args) { int v = 1; Console.WriteLine(string.Format("v = {0}", …