Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Trong chương này bạn sẽ xem xét các thay đổi trong thời gian chạy ngôn ngữ chung (CLR) trong NET 4.0. Rằng bao gồm các thay đổi cho an ninh thu gom rác thải,, luồng, và quốc tế. Sau đó bạn sẽ nhìn vào các loại mới được giới thiệu trong NET 4.0. Và những cải tiến đã được thực hiện đến các lớp học hiện có. | CHAPTER 4 CLR and BCL Changes Availability Framework 4 In this chapter you will look at the changes to the common language runtime CLR in .NET 4.0 that cover changes to security garbage collection threading and internationalization. You will then look into the new types introduced in .NET 4.0 and the enhancements that have been made to existing classes. You will finish the chapter by looking at code contracts a great new feature allowing you to express assumptions and constraints within your code. New CLR The last two releases of.NET 3.0 and 3.5 have been additive releases building on top of the functionality available in CLR version 2.0 see Figure 4-1 . Major enhancements CLR version WCF WPF WF EF Parallel WCS LINQ DLR Y X W A W A W A V CLR1.0 CLR1.1 CLR2.0 SCLR2.0 SCLR2.0 CLR4.0 Z Z Z 77 7 r Z 7 Z 7 Z 7 Z A 7 Z 7 Z 7 Z 7 Z A 7 7 7 7 .NET version .NET 1.0 .NET 1.1 .NET 2.0 .NET 3.0 .NET 3.5 .NET 4.0 SP1 Figure 4-1. CLR releases 67 CHAPTER 4 CLR AND BCL CHANGES .NET 4.0 however has a new version of the CLR So you can happily install .NET 4.0 without fear that it will affect your existing .NET applications running on previous versions of the framework. ASP.NET When using IIS7 the CLR version is determined by the application pool settings. Thus you should be able to run .NET 4.0 ASP.NET applications side by side without fear of affecting existing ASP.NET sites. What Version of the CLR Does My Application Use It depends applications compiled for earlier versions of the framework will as before use the same version they were built on if it s installed. If however the previous framework version is not available the user will now be offered a choice about whether to download the version of the framework the application was built with or whether to run using the latest version. Prior to .NET 4.0 the user wouldn t be given this choice with the application using the latest version available. Specifying the Framework to Use Since almost the beginning of .NET well .NET .