Michael Chai

I am SErVice-oRienTed !

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  C#

a programming Language
摘要:好了,不连载了,我自己都看着难受。今天刮台风,上海还下大雨,所以在家把文档都翻了一下。我看市面上有的书都是从规范中来的,建议初学者都看C#语言文档规范。在Rar中还包含了C#1.2和2.0的规范(繁体中文的),希望对大家有用。对了,我不是职业翻译,并且这次都是每天半个小时搞的,所以如果3.0中任何翻译问题,请大家指正,接着打算把刚出来的技术预览版文档中的更新再翻译一下,希望能够对有用处的人有用。下... 阅读全文
posted @ 2006-05-18 17:52 cp 阅读(2257) 评论(7) 推荐(0)

摘要:26.1 Object and collection initializers 对象以及集合构造者An object creation expression (§7.5.10.1) may include an object or collection initializer which initializes the members of the newly created objec... 阅读全文
posted @ 2006-05-18 12:19 cp 阅读(868) 评论(0) 推荐(0)

摘要:26.1.1 Overload resolution 重载决断 Lambda expressions in an argument list affect overload resolution in certain situations. 在特定情况中,lambda表达式在某个参数列表中会影响重载决断。 The following rule augments §7.4.2.3: Given ... 阅读全文
posted @ 2006-05-15 21:00 cp 阅读(1065) 评论(0) 推荐(0)

摘要:26.1.1 Type inference 类型推断 When a generic method is called without specifying type arguments, a type inference process attempts to infer type arguments for the call. Lambda expressions passed as arg... 阅读全文
posted @ 2006-05-14 22:06 cp 阅读(814) 评论(0) 推荐(0)

摘要:26.1 Lambda expressions Lambda 表达式 C# 2.0 introduces anonymous methods, which allow code blocks to be written “in-line” where delegate values are expected. While anonymous methods provide much of th... 阅读全文
posted @ 2006-05-14 20:49 cp 阅读(4311) 评论(1) 推荐(0)

摘要:26.1 Extension methods扩展函数 Extension methods are static methods that can be invoked using instance method syntax. In effect, extension methods make it possible to extend existing types and construct... 阅读全文
posted @ 2006-05-12 23:15 cp 阅读(1135) 评论(0) 推荐(0)

摘要:26.1 Implicitly typed local variables隐式类型化的本地变量 In an implicitly typed local variable declaration, the type of the local variable being declared is inferred from the expression used to initialize th... 阅读全文
posted @ 2006-05-12 22:52 cp 阅读(779) 评论(0) 推荐(0)

摘要:呵呵,这是基于PDC 2005 发布的C#3.0规范进行的翻译,因为很匆忙,所以就把英文一起贴出来,这样便于英文好的朋友指正。我会持续在cp612sh.cnblogs.com上发布接下来的翻译内容,有兴趣的朋友可以到MSDN自行下载LINQ的相关资源,因为已经有了相应C#3.0的编译器,也就是说,你可以自己弄一个在VS2005上跑跑,做些试验,写点代码。祝愿大家编程愉快。 26. Overview... 阅读全文
posted @ 2006-05-12 22:46 cp 阅读(1377) 评论(0) 推荐(0)