C# winform中的与或逻辑我哪里写错了?
if ((textBox1.Text == null) || ((radioButton1.Checked==false) && (radioButton2.Checked==false)))
{
MessageBox.Show("信息不完整!");
}
我的本意是textBox1没有值或者两个radiobutton都没被选的时候就显示“信息不完整”弹窗。但为何只要我选了某个radiobutton,即使textBox1为null也不会显示“信息不完整”呢?我哪里写错了?谢谢