C# 字符串前加$

string s = "hello";
string fo = $"{s} world";

// 等同于使用Format方法:
string fo = string.Format("{0} world",s);

(完)

原文地址:https://www.cnblogs.com/lishidefengchen/p/11473905.html