如何將整個KeyValuePair傳遞給For循環?在For循環中設置KeyValuePair
Dim grouped As New Dictionary(Of [String], List(Of DataRow))()
For index = grouped.Count-1 To 0 Step -1
'How do I pass the entire KeyValuePair to the PopulateData function?
PopulateData(????)
Next
你的分組變量的類型是什麼? – pmcoltrane
字典([String],列表(DataRow))() –
如果你想傳遞KVP,你需要返回'For Each kvp As KeyValuePair ...'。但是這個方法在邏輯上應該只關心'List(DataRow)',即Value部分 – Plutonix