TechBubbles Microsoft Technology BLOG

What is new in .NET Framework 4.5

 

Another major release in .NET Framework, .NET 4.5 which allows the developers to use Windows 8 technologies and windows runtime directly from .NET 4.5. It makes easy and natural to write Metro style applications using C# and VB. .NET 4.5 makes your applications run faster eg: Faster ASP.NET startup. .NET 4.5 gives  you easy access to your data with entity framework code first approach and recent SQL Server features. This post discuss these features in detail.

You can download the .NET FW  4.5 Developer preview from here.

Support for Windows Runtime

It feels very natural for C# and VB developers, even you may not even know you are using the windows runtime. Windows.Storage is windows runtime namespace and you can use this as regular .NET name space.

image

You can instantiate windows runtime object just like .NET objects.

Support for Metro Style Applications

Simple and light-weight base class library APIs helps the C# and VB developers to build Metro Style Applications.

image

You can easily port your existing Windows Phone, Silverlight and desktop applications to Windows 8. Windows 8 support is the single largest investment in .NET FW 4.5.

Support for Async Programming

You can write more response applications using Await.You can write easy client UI code that does not block.

image 

Easy to write the code that fetches data from multiple sources in parallel. Better support on Server Code by not having a thread for request.

Garbage Collector Improvements

Background Server GC which is multi-core garbage collector. Now there are shorter pauses when collecting Gen2 collections. It also supports scalable marking for full blocking GCs. Improvements on better use of free space on Large Object Heap Allocation. Balancing the Large Object Heap allocations across processors.

Faster ASP.NET Startup 

Two ways to run ASP.NET.

  • Start application and keep it running on your server. It is ok if you have few applications on your server.
  • Start the application when a request comes in(e.g. Hosters)

35% faster cold start than earlier… with multi-core JIT support.

image

The above screen shows you the .NET FW 4 application on left running on windows server 2008 r2 and on right Windows Server 8 with FW 4.5 Developer preview. The test is running 100 instances on each side. If you notice the left hand side memory consumption it is around 3.5 GB where as in right it is 2.4 which is a good improvement.

Better Data Access Support

When you are writing code to access the database, you can use either existing database or create a new database. You can choose a design centric approach or code centric approach.

image

New ADO.NET Features

  • More support for SQL Server 2008 particularly null bit compressions for sparse columns.
  • Support for new Denali features.
  • Support for new spatial types in Denali.

WebSockets Support

New bidirectional communication standard with low latency and low bandwidth. More about this topic can be read here

WPF Improvements

Lot of improvements to items control scaling.

image

Workflow Support

Supporting the C# expressions. bringing back the state machine support.

BCL Support

image

.NET 4.5 Addresses the top developer requests in WPF, Workflow, BCL , MEF and ASP.NET

Share this post :

About the author

Kalyan Bandarupalli

My name is kalyan, I am a software architect and builds the applications using Microsoft .NET technologies. Here I am trying to share what I feel and what I think with whoever comes along wandering to Internet home of mine.I hope that this page and its contents will speak for me and that is the reason I am not going to say anything specially about my self here.

1 Comment

TechBubbles Microsoft Technology BLOG

Follow me

Archives

Tag Cloud