I have been looking at some of the innovations coming from C# 4, whereby the following have caught my eye. These are “old news” to C++ developers for example, but definitely “new news” for C# 2 and 3 developers q;-)
Default and Named Parameters
Finally the default parameters are back, allowing us to literally cleanup a lot of code noise we had to do to work around the lack thereof, i.e. by using operation overloads.
One of the features that made me frown, still has me worried, but which may prove valuable is the dynamic type, which instructs the compiler to resolve the type only at runtime. This means that we can p[potentially write code that calls methods on the type, which may not actually exist, resulting in runtime debugging journeys.
Looking forward to finding more C# 4 nuggets q;-) … see you soon.