${}代替string.format()
string s = ""; s = string.Format("{0}+{1}={2}\t",12,13,12+13); int m = 100, n = 101; //$"...{值}..{值}...{值}" s += $"我{11}岁了,他{22}岁了"; //有表达式的话, 用"()"包起来 s += $"我已经{(aa())}岁了,他也{n}了"; s+= $"我已经{(m>n?0:1)}岁了,他也{n}了"; Console.WriteLine(s); Console.ReadKey();