New features in. NET Framework 3.5 (6) [sorting]

Source: Internet
Author: User

Before resuming:New features in. NET Framework 3.5 (5) [sorting]
According to the specific description on msdn, the following documents are prepared:

The new features in. NET Framework 3.5 are reflected in the following aspects:
-. NET Compact framework
-ASP. NET
-External programs and scalability (addin)
-Public Language Runtime Library
-Cryptography)
-Network
-WPF (Windows Presentation Foundation)
-WCF (Windows Communication Foundation)
-WF (Windows Workflow Foundation)
-Windows Forms (Windows Forms)
-LINQ
-Expression trees)
-Rich and complete programming languages such as C #, C ++. net, and VB.net

Expression trees)

Expression Tree (expression trees) is a new feature in. NET Framework 3.5. It provides a way to represent language-level code in the form of data.
The system. LINQ. Expressions namespace (located in the system. Core. dll assembly) contains the type of the build block that belongs to the expression tree. These types can be used to represent different types of code expressions, such as method calls or equal comparisons.
The Expression Tree is widely used in LINQ queries for remote data sources (such as SQL databases. These queries are represented in the expression tree, which allows the query provider to check these queries and convert them into domain-specific query languages.

C #, C ++. net, VB.net, and other programming languages
There are three Microsoft programming languages specifically targeting. NET Framework: C #, C ++. net, VB.net

-New features in-C #

C #3.0 Language
Implicit local variables and Arrays
> When used with a local variable, the VaR keyword instructs the compiler to deduce the type of the variable or array element based on the expression on the right of the initialization statement.
Object Initial Value Setting item
> You can initialize an object without explicitly calling the constructor.
Set Initial Value
> You can use the initialization list instead of a specific call to add or other methods to initialize the set.
Extension Method
> Use static methods to extend existing classes. These static methods can be called through the instance method syntax.
Anonymous type
> Allows dynamic creation of unnamed structured types that can be added to the set and accessed using VAR.
Lambda expressions
> Supports inline expressions with input parameters that can be bound to a delegate or Expression Tree. For more information, see anonymous functions (C # programming guide ).
Query keywords
> Used to specify the keywords of substatements in the query expression: From clause, where clause (optional), sort clause (optional), join clause (optional), select or group clause, into clause (optional)
Automatically implemented attributes
> Attributes can be declared using simplified syntax.
Division method definition
> The Division type can now include the division method.

C #3.0 Compiler
/Win32manifest and/nowin32manifest compiler switch. These new compiler switches are used to specify the request execution level for programs running on Windows Vista.

Visual C # ide
Specify multiple versions
> Vs 2008 allows you to specify different. NET Framework versions for a project, for example, Framework 2.0, 3.0, or 3.5.
New project types and templates
> Multiple new project templates are provided for WPF, WCF, and web projects.
Support for C #3.0 intelliisense
> The Visual C # Code Editor provides the statement termination and quick information functions to support various new language features and constructor requirements in C #3.0.
Support for C #3.0 refactoring
> To support the construction of the following new languages, the refactoring function "RENAME", "signature change", "extraction method", and "upgrade local variables to parameters" have been updated: query expression, extension Method, Lambda expression. In addition, the refactoring function provides new options and warnings to help prevent unexpected consequences caused by refactoring operations.
Set code format
> The Code Editor provides the format setting option for multiple new C #3.0 language constructs, including Query expressions.
Organize using statements
> The Visual C # Code Editor provides an easy way to sort and remove using and extern declarations.

-New functions in Visual C ++ 2008 (omitted)
-New functions in Visual Basic (omitted)

[The end]

Related:Function introduction in. NET Framework 3.5 (1)
Recommended reading:. NET Framework Version Parsing

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.