2 c# conditional if-statement boolean decimal
我想在numericUpDown的值改变时隐藏一些东西,所以我写了这个:
if (numericUpDown1.Value = 1)
{
Label1.Hide();
}
Run Code Online (Sandbox Code Playgroud)
但我收到此错误消息:
无法将类型'decimal'隐式转换为'bool'
为什么会这样?
| 归档时间: |
|
| 查看次数: |
2776 次 |
| 最近记录: |