惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cisco Talos Blog
Cisco Talos Blog
阮一峰的网络日志
阮一峰的网络日志
云风的 BLOG
云风的 BLOG
D
Docker
Vercel News
Vercel News
IT之家
IT之家
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
腾讯CDC
Google DeepMind News
Google DeepMind News
I
InfoQ
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
The GitHub Blog
The GitHub Blog
博客园 - Franky
The Cloudflare Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
T
Tenable Blog
P
Proofpoint News Feed
Recorded Future
Recorded Future
Security Latest
Security Latest
H
Hackread – Cybersecurity News, Data Breaches, AI and More
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 聂微东
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Google Online Security Blog
Google Online Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
The Last Watchdog
The Last Watchdog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
N
News and Events Feed by Topic
TaoSecurity Blog
TaoSecurity Blog
U
Unit 42
The Hacker News
The Hacker News
Martin Fowler
Martin Fowler
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
F
Full Disclosure
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
V
V2EX
Project Zero
Project Zero

博客园 - cp

HR:.Net(Senior)Software Engineer/Project Leader IT Consulting Positions (Senior Level) Software Sales Engineer / Software Engineer Scott Gu上海见面会 有个朋友公司急召C++程序员 对比面向对象和面向服务 预告一下接下来要写的心得 C# 3.0 规范(PDC2005)中文word版本 C#3.0规范(七)对象以及集合构造者 关于ComponentArt Web.UI 2006.1(build 1208)源代码之若干说明 ComponentArt Web.UI 2006.1 源代码 C#3.0规范(六)重载决断 C#3.0规范(五)类型推断 C#3.0规范(四)Lambda 表达式 C#3.0规范(三)扩展函数 C#3.0(二)隐式类型化的本地变量 IIS不工作 Const n = 234234245# [导入]一个使用的小问题
C#3.0规范(一)C#3.0概述
cp · 2006-05-12 · via 博客园 - cp

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

26. Overview of C# 3.0

C# 3.0 (“C# Orcas”) introduces several language extensions that build on C# 2.0 to support the creation and use of higher order, functional style class libraries. The extensions enable construction of compositional APIs that have equal expressive power of query languages in domains such as relational databases and XML. The extensions include:

C# 3.0(“C# Orcas”)引入了一些语言的扩展,这些扩展是基于C#2.0做出的,并且支持到创新和更高端的命令,功能性风格的类库。这些扩展使得对于结构性的API的解释变得有效,并且使得C#能够像查询语言在某些领域(例如 关系型数据库和XML)一样,具有同等的威力。这些扩展包括:

·         Implicitly typed local variables, which permit the type of local variables to be inferred from the expressions used to initialize them.

·         隐式类型本地变量,能够允许这种类型的本地变量被用来初始化它们的表达式所推断出来的类型。

·         Extension methods, which make it possible to extend existing types and constructed types with additional methods.

·         扩展函数,使得扩展现有的类型和构造类型使用额外的函数成为可能。

·         Lambda expressions, an evolution of anonymous methods that provides improved type inference and conversions to both delegate types and expression trees.

·         Lambda 表达式,匿名函数的一种进化,为代理类型和表达式树提供改良的类型推断结果和转换。

·         Object initializers, which ease construction and initialization of objects.

·         对象构造者,使得构造和初始化对象更容易。

·         Anonymous types, which are tuple types automatically inferred and created from object initializers.

·         匿名类型,它从tuple 类型自动被推断并且由对象构造者生成的。

·         Implicitly typed arrays, a form of array creation and initialization that infers the element type of the array from an array initializer.

·         隐式类型化的数组,一种数组建立的规范并且初始化以从数组构造者那里推断出数组中的元素类型。

·         Query expressions, which provide a language integrated syntax for queries that is similar to relational and hierarchical query languages such as SQL and XQuery.

·         查询表达式,提供了一种语言内置的查询句法,有点类似关系型和等级型查询语言,例如SQLXquery

·         Expression trees, which permit lambda expressions to be represented as data (expression trees) instead of as code (delegates).

·         表达式树,允许lambda表达式被表示为数据(表达式树)以替代被表示为代码(代理)。

This document is a technical overview of those features. The document makes reference to the C# Language Specification 1.2 (§1 through §18) and the C# Language Specification 2.0 (§19 through §25), both of which are available on the C# Language Home Page (http://msdn.microsoft.com/vcsharp/language).

本文是对于上述特征的一些技术概观。文档引用了C# Language Specification 1.2($1$18)以及the C# Language Specification 2.0 (§19 §25),这些都可以在C# Language Home Page (http://msdn.microsoft.com/vcsharp/language)上得到。