摘要: 无意中在一程序中看到这种类型的声明——DateTime? ,(不知道大家又没用过,反正我是第一次碰到),后来去查了下资料才知道它是C#2.0的新特性,表示可以为空值,这么解释不知道对否,有错请指正^_^! 下面是摘自MSDN的代码:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usingSystem;classSample{publicstaticvoidMain(){DateTime?myNow;//Assignthecurrentdat 阅读全文
posted @ 2008-11-09 17:30 WCJ 阅读(331) 评论(6) 推荐(0) 编辑