阅读背景:

为什么有些方法可以工作而有些方法不能处理可为空结构的空值?

来源:互联网 

Straight to the point:

开门见山:

int? i = null;
i.ToString(); //happy
i.GetType(); //not happy
int? i = null;



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: