Joshua Goodman gave this talk and he did it in a humorous way. The overview he gave was a good one, and just about all the new .NET features he described were very interesting.

DSC_4679 DSC_4682

So what is new?

The .NET 2.0 and 4.0 CLR’s can now run in the same process:

DSC_4683

Using an old Native application within a .NET environment will become less of a hassle:

DSC_4684

We will get a new type, the BigInteger:

DSC_4685

We will get Tuples (like in functional languages), and these tuples can be used in C# in a very convenient way:

DSC_4686 DSC_4687

Also, garbage collection is improved in .NET 4.0:

This is on the client side:

DSC_4691

Watch the new background compilation, this improves performance of your apps, because Gen0 and Gen1 collection can be simultaneously done with Gen2 collection.

On the server side, garbage collection is also improved. When you’re on a web farm behind a load balancer, you will be able to subscribe to an event that Gen2 collection is going to take place. You can then notify the load balancer to stop sending requests to you, let the gen2 collection finish, and then notify the load balancer to start sending the requests again.

 

Also new are corrupted state exceptions:

DSC_4694 

This means certain exceptions cannot be caught any more (overridable with a switch)

Also new and very interesting are the Code Contracts:

DSC_4695

So how does this work?

DSC_4696

The Requires will be called when entering the method. The Ensures will get called after processing the method. So you can define entry and exit rules within your method! You can even get a parameter “rolled back” when an exceptions occurs (see the last EnsuresOnThrow rule)!


Posted in: PDC 2008 , .NET 4.0  Tags:

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Page List

    Calendar

    «  September 2010  »
    MoTuWeThFrSaSu
    303112345
    6789101112
    13141516171819
    20212223242526
    27282930123
    45678910
    View posts in large calendar

    Recent Comments

    Feedburner Statistics 9/8/2010
    23 Readers ~ 58 hits ~ 0 reach

    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010 Inwit.nl