我有这个代码:
if (textBox1.Text == "one" || "two")
我试过用|| 和| 添加更多字符串,但它表示它不能应用于"bool"和"string"类型的操作数.我怎样才能做到这一点?谢谢.
c# string operators
c# ×1
operators ×1
string ×1