使用字符串插值方法将两个字符串连接起来
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);