https://docs.microsoft.com/zh-cn/dotnet/visual-basic/pro ... -features/collection-initializers/【集合初始值设定项 - Visual Basic _ Microsoft Docs.pdf】点击下载此文件【如何:创建供集合初始化程序使用的集合 - Visual Basic _ Microsoft Docs.pdf】点击下载此文件一维数组:
Dim arrayl As Integer()={2,4,8}
二维数组:
Shared graph As Integer(,) = New Integer(5, 5) {{10000, 10000, 10, 10000, 30, 100}, {10000, 10000, 5, 10000, 10000, 10000}, {10000, 10000, 10000, 50, 10000, 10000}, {10000, 10000, 10000, 10000, 10000, 10}, {10000, 10000, 10000, 20, 10000, 60}, {10000, 10000, 10000, 10000, 10000, 10000}}
Dim array3 As Integer(,)={{2,4},{12,29}}