在 VB6 中你可以这样做:
Dim a As Variant
a = Array(1, 2, 3)
你能在 VB.NET 中用特定类型做类似的事情吗?:
Dim a() As Integer
a = Array(1, 2, 3)
最佳答案
Dim a() As Integer = New Integer() {1, 2, 3}
关于vb.net - 相当于 VB.NET 中的 Array()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/241758/