New Features in C# 4.0
Posted by Brian Finnerty
The April release date for Visual Studio 2010 and the .NET Framework 4.0 was accompanied by the usual “hubbub” and evangelical zeal that we’ve come to expect from Microsoft.
It’s fair to say that initial feedback on the changes in the Visual Studio IDE and enhancements to the underlying .NET Framework were broadly positive.
However, it really takes a few months for adoption to ramp up and the real story to emerge from developers in the trenches, so to speak.
In today’s blog, I’m going to focus on our latest .NET training release titled New Features in C# 4.0. While InnerWorkings is a longtime Microsoft partner and we support adoption of the .NET Framework in many ways, we try to keep our heads about new releases.
Our community expects us to focus on the key features that professional developers need to master. So consider us “fair and balanced” but not in the Fox News kind of way…
So what’s important for developers in the latest release of C# and why should you care about it anyway? Let me list the core areas of C# 4.0 that we think developers should focus on:
- using the dynamic keyword as a data type that supports runtime lookup
- using optional parameters for constructors and methods
- explicitly naming an argument being passing to a method
- working with the enhanced COM Interop features in C# 4.0
- dynamically importing COM APIs and deploying without Primary Interop Assemblies
- skipping the passing of optional parameters when making calls to COM objects
- omitting the ref keyword when calling a method on a COM object
- using the built-in .NET interfaces that have been made variant in .NET 4.0
- making generic interfaces and delegates covariant
And that’s really all there is! Our latest Drill on New Features in C# 4.0 is available to all InnerWorkings enterprise customers from today — contact us if you’d like to learn more about our subscription options for developers and software teams. We’ll be adding more .NET 4.0 training (think ASP.NET MVC 2) to the bundle before making it available from our web catalog, so watch this space.
In the meantime, you should check out this Channel 9 video titled Inside C# 4.0 for a behind-the-scenes look at how C# 4.0 evolved at Microsoft. Enjoy!
August 14th, 2010 at 6:13 pm
It also has f# language…
September 14th, 2010 at 7:25 pm
Thanks.
Very good.
Sincerely. From sjp