C #3.0 specification (I) C #3.0 Overview

Source: Internet
Author: User
Tags xquery

This is a translation based on the C #2005 specification released by PDC 3.0. Because it was in a hurry, I posted the English language together so that it was easy for good English friends to correct me.
I will continue to publish the next translation CONTENT ON cp612sh.cnblogs.com. If you are interested, you can go to MSDN to download the resources related to LINQ, because you already have the C #3.0 compiler, that is, you can run on VS2005, perform some experiments, and write some code by yourself.
Wish you a pleasant programming experience.

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 extensions ages in domains such as relational databases and XML. the extensions include:

C #3.0 ("C # Orcas") introduces some language extensions Based on C #2.0 and supports innovative and higher-end commands, class Library of the functional style. These extensions make the interpretation of structured APIs effective, and make C # equally powerful in some fields like query languages (such as relational databases and XML. These extensions include:

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

· Implicit local variables allow local variables of this type to be used to initialize the types inferred by their expressions.

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

· Extended functions make it possible to use additional functions for extended existing types and constructor types.

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

· Lambda expressions, an evolution of anonymous functions, provide improved type inference results and conversions for proxy types and expression trees.

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

· Object constructor makes it easier to construct and initialize objects.

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

· Anonymous type, which is automatically inferred from the tuple type and generated by the object constructor.

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

· An implicitly typed array, which is a standard established by the array and initialized to deduce the element type from the array constructor.

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

· The query expression provides a built-in query syntax, which is similar to relational and hierarchical query languages, such as SQL and Xquery.

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

· Expression Tree, which allows lambda expressions to be represented as data (Expression Tree) instead of represented as code (proxy ).

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

This article provides a technical overview of the above features. The document references C # Language Specification 1.2 ($1 to $18) and the C # Language Specification 2.0 (§ 19 to § 25 ), these can be obtained on the C # Language Home Page (http://msdn.microsoft.com/vcsharp/language.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.