C# 4.0 and Visual Basic 10 - Friends at Last

I'm watching a video of the February Indianapolis .NET Developers Association meeting. In this meeting Mark Strawmyer is presenting on changes in C#  and Visual Basic coming with the next release. To be fair, the presentations were based off of PDC presentations, so the material was a bit reused. In this blog, I will reuse part of it yet again.

One of the interesting things about the next iteration of these languages is that Microsoft has stated that they are bringing the languages more in line with each other. As such, things in VB have a good chance of showing up in C# and vice versa. Of course, they might not be implemented the same way, but functionality will be very similar over time.

In C# 4.0 and Visual Basic 10, you'll see several things begin to match up. The following table shows some of the key items coming. Note that the items in italic bold exist already in the given language. The other items will be added.

C# 4.0
      
Visual Basic 10

Named/Optional ParametersNamed/Optional Parameters
Dynamic ScopingDynamic Scoping
Statement LambdasStatement Lambdas
Multilined LambdasMultilined Lambdas
Auto-Implemented PropertiesAuto-Implemented Properties
Collection InitializersCollection Initializers
Generic VarianceGeneric Variance
Extension PropertiesExtension Properties

Of course, not everything will be matched perfectly. For example, you shouldn't expect XML literals in C#.


Blog Categories

Blog Archives

Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds