2
我试图在引号内部使用引号,它在文本框内工作,但不是我需要字符串的位置,例如,第一行代码有效,但我需要的字符串是一个变量。双引号“”“?
pictureBox1.Image = MediaLib.Get["chestarmor_105"];
但接下来的3不要。最后我尝试使用richTextBox1.Text作为变量,因为它似乎没有运气细那里。
string chestArmor = "chestarmor_105";
richTextBox2.Text = "\"" + chestArmor + "\"";
pictureBox1.Image = MediaLib.Get[richTextBox2.Text];
我试过了许多不同的“”变体,我错过了什么?谢谢。