摘要: int? i 表示可空类型,有什么意义呢? public static int? GetAge() { return null; } int? i=GetAge(); 只要在类型后面加了 ? ,那么就表示这个类型 可以为空。一般有 int? , bool? DateTime? 这3个类型. 而string name=null; person p1=null 这样是可以的,因为是引用类型,可以... 阅读全文
posted @ 2012-08-27 16:02 asp_net老友记 阅读(311) 评论(0) 推荐(0) 编辑