0

I'm getting an "end of statement expected" error on the following code:

Public BlockedID As New List(Of String) From {"0", "2", "3", "4", "5", "6"}

The code works fine on my nephew's version of Visual studios so I assume it's a VB.net framework specific problem. I already changed the target framework to 3.5 to get rid of some other errors.

Any idea how I can fix this one?

4

1 回答 1

0

试试这个:

Public BlockedID As New List(Of String)({"0", "2", "3", "4", "5", "6"})
于 2013-09-07T18:21:36.180 回答