我对此进行了很好的研究,但我仍然很不确定,有人可以告诉我如何将其优化为 LINQ 吗?这似乎有点老了,我确定有一种方法可以使用 LINQ 来做到这一点。
Dim existingSpends(Spend.Count, 4) As Double
Dim row As Integer, col As Integer
row = 0
For Each s As MarketingSpend_Chart In Spend
existingSpends(row, 0) = s.field1
existingSpends(row, 1) = s.field2
existingSpends(row, 2) = s.field3
existingSpends(row, 3) = s.field4
row += 1
Next