在VB6中,您可以这样做:
Dim a As Variant a = Array(1,2,3)
你能在VB.NET中用特定的类型做类似的事情吗?
Dim a() As Integer a = Array(1,3)
Dim a() As Integer = New Integer() {1,3}
Dim a As Variant a = Array(1,2,3)
你能在VB.NET中用特定的类型做类似的事情吗?
Dim a() As Integer a = Array(1,3)
Dim a() As Integer = New Integer() {1,3}