Imports System
Option Infer On ' Optional. Enables local type inference
Public Class Test
Public Shared Sub Main()
' When you set Option Infer to On,
' you can declare local variables without explicitly stating a data type
Dim v = "vb.net"
Console.WriteLine(v)
End Sub
End Class
' run:
'
' vb.net
'