[You must know. NET] 31st back, go deep into. NET 4.0, and look forward from "new"

Source: Internet
Author: User
Document directory
  • References

Anytao.net |. NET website you must know|Anytao technology blog

Released on: 2009.05.22 by: Anytao
2009 original works of Anytao.com and Anytao. Please refer to the author and source in the post.

/// <Summary> /// starting from this article, we will take ". NET 4.0 in-depth" as the main line to start an exciting journey to experience. NET 4.0. /// </Summary>

In general, this is an introductory article that does not involve too many technical details and research processes. However, as the first page to kick off, this article introduces the first experience of. NET 4.0 in outline. From the perspective of What's new, I started my journey to explore new features of. NET 4.0. Since it is an introduction, it is necessary and necessary to give a navigation link first, because it is difficult to explain What's new in details in a small article:

  • Visual Studio 2010 in MSDN
  • What's New in Visual Studio 2010
  • What's New in the. NET Framework 4
  • . NET Framework 4 Beta 1
  • Visual Studio 2010 Samples
  • Visual Studio 2010 and. NET Framework 4 Training Kit
  • Visual Studio 2010 Videos
  • . NET Framework 4 Videos
  • Visual Studio 2010 Beta 1 platform throughs

Because it is a subseries of [. NET] That you must know, I only pay attention to the new features of. NET 2010 after the release of 4.0. The following aspects are summarized:

  • CLR (Common Language Runtime)
  • DLR (Dynamic Language Runtime)
  • C # and VB. NET
  • Web and Networking
  • Basic class libraries (BCL)
  • Data
  • Client
  • Web
  • Communications

Therefore, the interpretation of what's new is divided into two major parts:

  • Hot Focus, Hotspot interpretation. Let's take a look at the technical points worth looking forward to and paying attention to in the new features at one o'clock. Because there are too many technical points, it is the right way to learn how to pull the code, in Hot Focus, we first have some knowledge about the highlights. At the same time, the Hot Focus content system will also be the direction and outline of the subseries of exploration in. NET 4.0.
  • Full View,. NET 4.0 panorama. The concept involves various new aspects, so as to have a comprehensive and basic understanding of. NET4.0.
Hot Focus

In my opinion, Hot Focus mainly includes the following aspects:

  • CLR & DLR
  • C #
  • Web
  • Cloud
  • Data
  • F #

The following is a one-to-one decomposition.

CLR 1, 4.0

Yes, you don't have to worry. CLR 4.0 is coming. We upgraded from CLR 2.0 to CLR 4.0. We decompile the new project to get the current CLR version information from Manifest, for example:

It can be seen that there are no heavyweight new members, and the. NET product group does not dare to rashly mount such a loud seal for the newborn. Who is the new guy with enough weight?

The answer is:

  • DLR (Dynamic Language Runtime) provides support for Dynamic languages at the CLR level.
  • Parallel Computing and Parallel Computing are inevitable in the multi-core era. Under the new platform, Parallel support also comes along. We don't need to directly manage threads. Parallel and Task classes, and of course PLINQ (Parallel LINQ) will all be on the stage.
  • GC and GC are also changing. We will wait and see.
  • Convariance and Contravariance, inverter and covariant solve some problems of generic inheritance, which is a very late improvement.
  • Interoperability, Interoperability will not rely on the original RIAs, the new CLR ensures the type of safe operation.
  • Lazy Initialization, in the future, through the System. lazy <T> is used to provide delayed initialization for your instance. This means that your type can be instantiated and the memory space can be allocated as needed, the performance control has reached a new height.
  • In-Process Side-by-Side Execution, In-Process Side-by-Side hosting solves the issue of running applications of different versions on the CLR 4.0 platform. We will discuss it In detail later.

In addition, it also includes:

  • Security
  • ETW Events
  • Code Contracts
  • Profiling

All concepts will be followed. That's because all concepts are heavyweight.

C #4.0

C #4.0 mainly introduces the following program elements:

  • Office Programmability
  • Dynamic
  • Covariance and Contravariance
  • Type Equivalence

 

About. NET 4.0 and C #4.0. NET] 30th back :. NET 10 years (below)] has been an introductory demonstration and discussion, you may wish to take a quick look.

ASP. Network 4.0

What's New in ASP. NET and Web Development

For Web development, ASP. NET 4.0 has provided many unintegrated new things since 3.5, including many amazing changes like MVC. Therefore, for. NET 4.0, our contribution to Web development lies in the preparation and regeneration of the past. The main contents worth noting include:

  • MVC. Although VS2010 Beta1 has not integrated the MVC Framework, Microsoft promises that we can see the new MVC figure in Beta2.
  • Dynamic Data, right, has long known how to develop an add, delete, modify, and query Dynamic site within one minute, and implement Data-driven Web development in ASP. NET 4.0 with more Powerful.
  • Web Form, in ASP. NET 4.0 traditional Web Form development has been injected with more new features, we can use ASP seamlessly as MVC Application. NET Routing, providing Filtering support for data sources, more View state control, and a lot more...
  • EntityDataSource Control, which supports data binding Control based on Entity Framework.

For more information, see What's New in ASP. NET and Web Development.

Data

What's New in ADO. NET

In terms of data, it is mainly the enhancement of ADO. NET Entity Framework and more support for Expression Tree. EF is mainly reflected in the following aspects:

  • Persistence-Ignorant Objects, which is encouraging. In the new EF framework, EF entity classes and non-EF entity classes apply data support provided by EF, this means that the original data model can also enjoy EF.
  • Deferred Loading of Related Objects:
if (!user.RoleReference.IsLoaded){    user.RoleReference.Load();}

It is hard to understand. This new feature provides an opportunity for code optimization.

  • Functions in LINQ to Entities Queries is not surprising that everything is in the era of LINQ.
  • Customized Object Layer Code Generation provides a configurable wizard for the EF data designer to automatically generate Code, making it more user-friendly.
  • It also includes Complex Type Support, Naming Service, and Improved Model Brower Funcationality.

In addition, for Expression Tree, several new types are supported, such as LoopExpression and TryExpression.

BCL

Updating the basic library is an important part of every. NET version update. The addition of the basic library in. NET 4.0 is also shocking. Here I will only list several important updates. For more information, see MSDN.

  • Collections

    • BigInterger
    • SortedSet <T>
    • Tuples
  • I/O
    • File System Enumeration
    • Memory-Mapped Files
    • Isolated Storage
    • Compression
  • Exception
  • Reflection
  • 64-bit
  • Application Domain Resource Monitoring
  • Threading
  • Uniied Model for Cancellation
  • Thread-Safe Collection
  • Synchronization Primitives
  • ...
  • ...
  • There are many, and our strategy is obviously on demand.
Cloud

Cloud computing will inevitably come in. on the NET 4.0 platform, Azure Service applications will be dazzled, but it is certain that the development model is simpler. A large number of problems will take time to complete. We will try again later.

F #

A new language that is brand new and attractive to me. Let's talk about it later :-)

Full View

 

In addition to the above key content,. as part of the NET 4.0 family, there are many exciting new things that make us sigh that everything is too much, too fast, and at the same time bring a little surprise and heart. To put it bluntly, make a simple arrangement:

  • MEF
  • WPF
  • WCF 4.0
  • WF 1, 4.0
  • Appliction Server (codenamed Dublin)
Conclusion

. NET 4.0 is coming this summer. In the middle of the night when mosquitoes and beer are together, I will continue [you must know. NET] series, will be their own. NET 4.0 new features [in-depth. NET 4.0. As always, we will focus on the exploration of the essence of language and platform, the sharing of best-practice applications and the latest foreign arguments is also a topic of attention from the new generation. We are on our way.

 

Note: you must know that the. NET and. NET 4.0 sub-series are based on VS2010 Beta1 and. NET 4.0 Beta1. I will try my best to improve any subsequent updates.

 

References
  • Visual Studio 2010 in MSDN
  • What's New in Visual Studio 2010
  • What's New in the. NET Framework 4
  • . NET Framework 4 Beta 1
  • Visual Studio 2010 Samples
  • Visual Studio 2010 and. NET Framework 4 Training Kit
  • Visual Studio 2010 Videos
  • . NET Framework 4 Videos
  • Visual Studio 2010 Beta 1 platform throughs

 

For more information, see anytao.net.

 

Anytao | 2009 Anytao.com

2009/05/22 | http://anytao.cnblogs.com/| http://anytao.net/blog/post/2009/05/22/anytao-insidenet-31-net4newfullview.aspx

This document is provided as "the status quo" without any guarantee and does not grant any rights. | This posting is provided "as is" with no warranties, and confers no rights.

The copyright of this article is owned by the author. You are welcome to repost this article, but you must keep this statement without the author's consent and provide a clear link to the original article on the article page. Otherwise, you will be entitled to pursue legal liability.

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.