Question

first of all let me say that I know about dynamic, no PIA, named and optional parameters and finally covariance and contravariance.

In my projects 99% of the time my code is in C#, I almost never do Office automation, I don't plan to use any dynamic language any time soon, and, besides being necessary for Office automation, I think named and optional parameters are wrong (and no, overloads do not count, if you have that many overloads the problem is in the design, not the language).

So whats there for a C# guy in a static-typed world?, The only thing appears to be covariance and contravariance, which sounds great, but I was hoping something more. The only bits that I'm excited to try are the parallel extensions for Linq but that's about it (and that's [available for 3.5 as a CTP).

Why are you exited about C# 4?

Was it helpful?

Solution

The only thing to be excited about in C# 4 from a non-COM, non-dynamic standpoint are covariance and contravariance. Everything else is centered around dynamic typing.

OTHER TIPS

  1. Better Garbage Collection

  2. New Thread Pooling Engine

  3. Code Contracts

  4. If you're not doing ASP.NET WebForms development you wouldn't care, but, there are significant improvements there as well.

Learning Resources for .NET 4.0 New Features

...hit the link for some good resources about some of the new features.

Really optional default parameters, co/contravariance (has been an advantage of Java) and the ParallelFX.

There's a new chart control now in the toolbox... yea I got nothin else..

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top