摘要:
总结了下nullable变量类型的基本用法,希望对大家有所帮助int? a = default(int?); // a is the null valueint? b = default(int); //b is the integer 0.int? c = 5; // c is the integer5. bool aHasValue = a.HasValue; // falsebool bHasValue = b.HasValue; // true;bool cHasValue = c.HasValue; // true int aValue = a.Value; // throws In 阅读全文
posted @ 2011-12-23 02:32
shuse
阅读(267)
评论(0)
推荐(0)
浙公网安备 33010602011771号