In VB6 you can do this:
Dim a As Variant
a = Array(1, 2, 3)
Can you do a similar thing in VB.NET with specific types, like so?:
Dim a() As Integer
a = Array(1, 2, 3)
In VB6 you can do this:
Dim a As Variant
a = Array(1, 2, 3)
Can you do a similar thing in VB.NET with specific types, like so?:
Dim a() As Integer
a = Array(1, 2, 3)
Dim a() As Integer = New Integer() {1, 2, 3}
If you are new to .NET you will want to learn about the List collection and the flexibility it will give you in respect to sorting, filtering, and iteration.