int? number; //可为null 值,int默认为0 if(number == null) //没有赋值。 { //Do something } 微软在 .net2.0 中特意加了这个问号运算 符