摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System; class Test { static void Main() { /* try { ... 阅读全文
posted @ 2008-09-04 19:23 Athrun 阅读(451) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* * Created by SharpDevelop. * User: Administrator * Date: 2008/9/4 * Time: 上午 10:40 * 泛型(gerer... 阅读全文
posted @ 2008-09-04 11:13 Athrun 阅读(375) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/* * Created by SharpDevelop. * User: Administrator * Date: 2008/9/4 * Time: 上午 12:10 * *... 阅读全文
posted @ 2008-09-04 09:53 Athrun 阅读(452) 评论(0) 推荐(0) 编辑
摘要: C# 2.0引入了很多语言扩展,最重要的就是泛型(Generics)、匿名方法(Anonymous Methods)、迭代器(Iterators)和不完全类型(Partial Types)。 ● 泛型允许类、结构、接口、委托和方法通过它们所存贮和操作的数据的类型来参数化。泛型是很有用的,因为它提供了更为强大的编译期间类型检查,需要更少的数据类型之间的显式转换,并且减少了对装箱操作的... 阅读全文
posted @ 2008-09-04 08:47 Athrun 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 在发布Visual Studio 2005和C#2.0之后,微软公司又马不停蹄的展示了人们所期望的C#的下一代版本:C# 3.0。尽管C# 3.0并没有标准化,微软还是在PDC(专业程序员会议)发布了一个预览版本,因此心急的程序员可以看到一些所期望的特性,这也是本文所讨论的主要内容: ?隐式类型本地变量 ?匿名变量 ?扩展方法 ?对象和Collection初始化符 ?Lambd... 阅读全文
posted @ 2008-09-04 08:34 Athrun 阅读(232) 评论(0) 推荐(0) 编辑