Type Inference in VB.net 9.0

I typed Dim x = New List(Of String) but on the next line I realized that the implicit type inference didn’t work and Intellisense treated x as Object.  It turns out, it was an easy fix.  You have to open the project properties and turn “Option infer” to On.  Or type

at the top of your class.