我无法从VB中的ArrayList获取数据

时间:2014-07-18 02:57:14

标签: vb.net visual-studio-2010 visual-studio-2013

Module Module1

    Sub Main()
        Dim Data1() As Integer = {1, 2, 3, 4}
        Dim Data2() As Integer = {4, 5, 6, 7, 1}
        Dim Data3 As New ArrayList
        Data3.Add(Data1)
        Data3.Add(Data2)
    End Sub

End Module

我想将数据导入Data3

1 个答案:

答案 0 :(得分:0)

试试这个,

Data3.AddRange(Data1.Concat(Data2).ToArray())