摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 扩展方法 Extension Methods 许明会 ...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 集合初始化器: Collection Initializer ...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- Object Initializer: 对象初始化器 可以直接对属性赋值 --==...
阅读全文
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 自动属性: Auto Property 常规的属性的get,set不必书写了。 ...
阅读全文
摘要:/*--===------------------------------------------===--- 匿名类型: Anonymouse Type --===------------------------------------------===--- private static void Main() { int[] numArray = new int[] { 3, ...
阅读全文
摘要:staticvoidMain(){int?a=null,b=null;strings=null;///??运算符称为null合并运算符,用于定义可以为null值的类型和引用类型的默认值。///如果此运算符的左操作数不为null,则此运算符将返回左操作数;否则返回右操作数。b=a??781023;Console.WriteLine("{0}",b);Console.WriteLine("sis{0}",s??"NULL");Console.Read();}
阅读全文