BT

New Early adopter or innovator? InfoQ has been working on some new features for you. Learn more

C#/VB Parity in .NET 4

| by Jonathan Allen on Apr 24, 2009. Estimated reading time: less than one minute |

At the 2008 PDC, Microsoft promised language parity between Visual Basic and C#. What that means for .NET 4 was enumerated during the Lang.NET keynote (18 minute mark). Briefly, this is what you can expect to see.

New Features for both languages

  • Interop with Dynamic Languages
  • Co/contra-variance
  • PIA deployment not needed

New for VB 10, already available in C#

  • Auto-implementation of properties
  • Collection initializers
  • Statement lambdas

New for C# 4, already available in VB

  • Named/Optional Parameters
  • Latebinding support
  • Omit “ref” on COM calls

Unfortunately, two key features did not make the list. C# 4 will not be picking up XML Literals and VB will not have iterators.

Not mentioned were some smaller, but still needed, features such as allowing structures in optional parameters. The inability to declare an optional, nullable integer on a function makes making one-to-one mappings with stored procedures impossible. This was demonstrated for VB between sessions at the PDC.

Rate this Article

Adoption Stage
Style

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Discuss

Login to InfoQ to interact with what matters most to you.


Recover your password...

Follow

Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.

Like

More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.

Notifications

Stay up-to-date

Set up your notifications and dont miss out on content that matters to you

BT