2011年4月12日
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { int? a; a = null;//此时输出3 //a = 6;//此时输出6 int b = a ?? 3; Console.Write(b); Console.ReadKey(); } }}变量定义中含有一个问号,意思是这个数据类型是NullAble类型的。变量定义中 阅读全文
posted @ 2011-04-12 21:11 陈孝勇 阅读(454) 评论(0) 推荐(0) 编辑