Can't declare lists in VB.NET?
vb.net
Solution
Use Generic.List instead of just List.
Dim lstNum As New Generic.List(Of Integer)(New Integer() { 3, 6, 7, 9 })
Since you have the Word interop imported, it is trying to find Word.List. Specifying Generic.List will tell it to go outside of that import.
Problem
``` Dim lstNum As New List(Of Integer)(New Integer() { 3, 6, 7, 9 }) ``` When I type the above line of code, Visual Studio informs me of an error 'Microsoft.Office.Interop.Word.List' has no type parameters and so cannot have type arguments. What on earth does that mean and how do I fix it? I can't seem to create lists of any kind. I'm assuming I'm missing some sort of import but I'm not fluent with VB.Net enough to know what to try.