Developer, Former MVP, now at Microsoft - Best of 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013
Dim i = 3Dim s = "hi"Dim o = New SomeType()
Dim i As Integer = 3Dim s As String = "hi"Dim o As New SomeType()
Dim myCol = New Dictionary(Of Integer, SomeType)()
Dim myCol As New Dictionary(Of Integer, SomeType)()
Dim col As IEnumerable(Of SomeType) = New SomeCollectionType() For Each a In col 'a is inferred by the compiler to be SomeType a.MethodOnSomeType() 'intellisense here pops-up as expected Next