许明会的计算机技术主页

Language:C,C++,.NET Framework(C#)
Thinking:Design Pattern,Algorithm,WPF,Windows Internals
Database:SQLServer,Oracle,MySQL,PostSQL
IT:MCITP,Exchange,Lync,Virtualization,CCNP

导航

随笔分类 -  C#编码示例

上一页 1 2 3 4 5

WPF, WCF, WWF, CARDSPACE,C#语法及测试
C#3.0技术探讨(5) :扩展方法 Extension Methods
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 扩展方法 Extension Methods 许明会 ... 阅读全文

posted @ 2007-12-03 20:08 许明会 阅读(202) 评论(0) 推荐(0)

C#3.0技术探讨(4):集合初始化器Collection Initializer
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 集合初始化器: Collection Initializer ... 阅读全文

posted @ 2007-12-03 19:52 许明会 阅读(249) 评论(0) 推荐(0)

C#3.0技术探讨(3):对象初始化器 Object Initializer
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- Object Initializer: 对象初始化器 可以直接对属性赋值 --==... 阅读全文

posted @ 2007-12-03 17:22 许明会 阅读(259) 评论(0) 推荐(0)

C#3.0技术探讨(2):自动属性 Auto Property
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->/*--===------------------------------------------===--- 自动属性: Auto Property 常规的属性的get,set不必书写了。 ... 阅读全文

posted @ 2007-12-03 17:20 许明会 阅读(376) 评论(0) 推荐(0)

C#3.0技术探讨(1):匿名类型 Anonymouse Type
摘要:/*--===------------------------------------------===--- 匿名类型: Anonymouse Type --===------------------------------------------===--- private static void Main() { int[] numArray = new int[] { 3, ... 阅读全文

posted @ 2007-12-03 16:39 许明会 阅读(306) 评论(0) 推荐(0)

C#2.0中的可空类型
摘要: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();} 阅读全文

posted @ 2007-12-03 15:55 许明会 阅读(200) 评论(0) 推荐(0)

上一页 1 2 3 4 5