I am trying to initialize an array of a structure which contains 2 variables inside.
Private Structure SnakeLocation
Public Row As Integer
Public Column As Integer
End Structure
I have tried the following, but neither work.
Private Position As SnakeLocation() = New SnakeLocation() With {.Row = 7, .Column = 8}
Private Position() As SnakeLocation = New SnakeLocation With {.Row = 7, .Column = 8}
How can I accomplish this?