int? 可以为null ,所以int? 不能直接付值给 int 。
比如:
int? a;int b;if(a.HasValue){ b=a.Value;}
posted on 2014-10-06 19:18 泰德 阅读(249) 评论(0) 编辑 收藏 举报