Visual Studio Next Generation: Language Enhancements

Initializers

The next version of Visual Basic will support initialization of variables on the line in which they are declared. Initializers can be used anywhere including inside a control structure. The semantics of a procedure level declaration, which includes an initalizer, is the same as a declaration statement immediately followed by an assignment statement. In other words, this statement:

Dim X As Integer = 1

is equivalent to these statements:

Dim X As Integer X = 1

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.” - Rick Osborne