Comparison Between. Net Framework 2.0 and 4.0,. net Framework 2.04.0
. Net version |
2.0 SP2 |
4.0 |
Operating System |
Windows 2000 SP4 or above |
Windows XP SP3 or above |
Installation Package Size |
NetFx20SP2_x86.exe 23.8 MB NetFx20SP2_ia64.exe 52.2 MB NetFx20SP2_x64.exe 46.3 MB |
Uniform installation package: 48.1 MB |
Default installation |
XP: No. NET version is installed by default. Windows Vista/7:. NET 3.5 Win 8/8. 1/10:. NET 4.0 |
New Features |
|
Garbage Collection . NET Framework 4 provides background garbage collection. This function replaces concurrent garbage collection in previous versions and improves performance. |
| |
|
Dynamic Language Runtime Dynamic Language Runtime (DLR) is a new runtime environment that adds a set of services suitable for dynamic languages to CLR. With the help of DLR, you can more easily develop dynamic languages to run on. NET Framework, and it is easier to add dynamic functions to static typed languages. |
| |
|
BigInteger and plural |
| |
|
Memory ing File . NET Framework now supports memory ing files. |
| |
|
Parallel Computing . NET Framework 4 introduces a new programming model for compiling multi-thread and asynchronous code, which greatly simplifies the work of application and library developers. |
| |
|
|
New Features (Inherited from 3.0/3.5) |
|
Var implicit type [Var is now a keyword] |
| |
|
Automatic and implicit types |
| |
|
Lambda expressions |
| |
|
Extension Method |
| |
|
Initiators and anonymous methods |
| |
|
Parameter default value and name parameter |
| |
|
Built-in generic delegation |
| |
|
Standard query operator and LINQ query expression |
| |
|
WPF The new graphic interface system and API of. NET and vector graphics technology make full use of computer 3D graphics card hardware functions and Direct3D technology. Data Binding is one of its core tasks. |
| |
|
Thread processing Better Reader/writer lock and enhanced ThreadPool Performance |