我对函数Z有一点问题,就是将数据从字典复制到数组中。我怎么能解决这个问题,因为dicValues是维度的?
Dim dicValues(24) As Dictionary(Of String, Long)
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
For Index = 1 To 24
dicValues(Index) = New Dictionary(Of String, Long)
Next
End Sub
问题在这里:
Dim arr As Array = dicValues.[Select](Function(z) z.Value).ToArray()
答案 0 :(得分:2)
像这样使用dicValues(1)
Dim arr As Array = dicValues(1).[Select](Function(z) z.Value).ToArray()