C# 4.0 and Visual Basic 10 - Friends at Last | CodeGuru

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 […]

Feb 17, 2009
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

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 Parameters Named/Optional Parameters
Dynamic Scoping Dynamic Scoping
Statement Lambdas Statement Lambdas
Multilined Lambdas Multilined Lambdas
Auto-Implemented Properties Auto-Implemented Properties
Collection Initializers Collection Initializers
Generic Variance Generic Variance
Extension Properties Extension Properties

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

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.