运算符'&'不能应用于'string'和'string'类型的操作数

Cob*_*old 0 .net c#

我正在尝试以下代码:

string text = "";
char c = 'd';
text += "abc" & c.ToString();
Run Code Online (Sandbox Code Playgroud)

..但它返回错误'运营商'和'不能......'.即使没有ToString(),它也不起作用.将char转换为字符串有什么问题?

Bra*_*don 11

您不使用&C#中的字符串连接+

string text = ""; 
char c = 'd'; 
text += "abc" + c;
Run Code Online (Sandbox Code Playgroud)