使用字符串插值方法连接两个字符串:
string firstName = "John";
string lastName = "Doe";
string name = @(1)"My full name is: @(11) @(10)";
Console.WriteLine(name);
string firstName = "John";
string lastName = "Doe";
string name = $"My full name is: {firstName} {lastName}";
Console.WriteLine(name);