The version of Visual Basic .NET used in Visual Studio/Visual Basic 2010. Use VB.NET and Visual Studio 2010 tags instead unless the question is specifically about language features added in VB.NET 2010.
The version of Visual Basic .NET used in Visual Studio/Visual Basic 2010. New features include:
Less-strict line continuation; for example, this syntax is allowed:
Dim lines() As String = { "I am line number one", "and I am line number two." }
Auto-implemented properties. This:
Public Property Hello() As String = "World"
is compiled like this:
Private _hello As String = "World" Public Property Hello() As String Get Return _hello End Get Set(ByVal value As String) _hello = value End Set End Property
Collection initializers using
From
:Dim l As New List(Of String) From {"Hello", "World"}
Multi-line lambdas:
Call New Thread(Sub() Console.WriteLine("Hello, world!") End Sub).Start()
Support for dynamic types
Support for contravariance and covariance
The full list of changes can be found here.