Visual Basic .NET Language Declare a single-dimension array and set array element values


Example

Dim array = New Integer() {1, 2, 3, 4}

or

Dim array As Int32() = {1, 2, 3, 4}