汗~,今天一哥们写的代码是这样的!
DateTime? dt = null;
(请注意?号的存在)
把我吓一跳!! 编译通过了!
详细Google,只找到以下这段:为了避免基元类型置null必须要装箱或者自建struct而引入的
http://shockfly.spaces.live.com/blog/cns!21e9409ad00f24e1!218.entry
汗~,今天一哥们写的代码是这样的!
DateTime? dt = null;
(请注意?号的存在)
把我吓一跳!! 编译通过了!
详细Google,只找到以下这段:为了避免基元类型置null必须要装箱或者自建struct而引入的
http://shockfly.spaces.live.com/blog/cns!21e9409ad00f24e1!218.entry