Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像问题所问的那样,我正在尝试将此数组转换为多维数组列表。
我知道这可以将一维数组转换为数组列表,但我的是 mwarray(0-alot,0-1)
table = New ArrayList(mwaray)
假设您想从多维数组中获取所有值并将其放入单个ArrayList中,那么您可以遍历这些值并添加它们:
ArrayList
table = New ArrayList() For i as integer = 0 to mwarray.GetLength(0) - 1 For j as integer = 0 to mwarray.GetLength(1) - 1 table.Add(mwarray(i,j)) Next Next