Possible Duplicate:
The type of the conditional expression can not be determined?奇怪的错误使用?操作
我目前写了这样一句话:
byte? Col_8 = (Rad_8.SelectedValue == null) ? null : byte.Parse(Rad_8.SelectedValue);
,但它有这个错误:
Type of conditional expression cannot be determined because there is no implicit conversion between
'<null>'
and'byte'
为什么我可以?
后使用空?如果没有if
声明,相当于上述代码呢?
什么是Rad_8.SelectedValue类型? – CharlesB 2012-01-09 11:55:22