110,549
社区成员
发帖
与我相关
我的任务
分享
decimal d = null;
//error:Cannot convert null to 'decimal' because it is a non-nullable value type
decimal? d1 = null;
//ok
public int? para;
//public int para;如果不注释掉此行,而把上一行注释掉的话,下面会报错!
public int par()
{
return this.para ?? 0;
}