2
有没有办法在多行字符串中使用C#6的字符串插值?有没有办法使用C#6的多行字符串的字符串插值?
喜欢的东西
string a = "1111";
string s = @$"
{a}
";
以上不起作用。
有没有办法在多行字符串中使用C#6的字符串插值?有没有办法使用C#6的多行字符串的字符串插值?
喜欢的东西
string a = "1111";
string s = @$"
{a}
";
以上不起作用。
尝试交换$
和@
的地方。
在[C#6中长字符串插值行]可能重复(http://stackoverflow.com/questions/31764898/long-string-interpolation-lines-in-c6) – BoeseB