我有以下声明:
Dictionary<string, Dictionary<string, string>> like = new Dictionary<string, Dictionary<string, string>>();
Run Code Online (Sandbox Code Playgroud)
我需要获取第一个元素,但不知道键或值.最好的方法是什么?
是否可以从字典中提取第 n 个键及其在 VBA 中的值?就像是
For i = 1 To Counter + diccompare.Count - UBound(RecSource)
WS.Cells(Lastrow + i, "A") = diccompare.Keys(UBound(RecSource) - Counter + i)
Next
Run Code Online (Sandbox Code Playgroud)
我尝试为 Cell(Lastrow +i) 分配字典 diccompare(UBound(RecSource) - Counter + i) 中键的值
如何从此字典中检索第一行.我记录了大约15条记录.
Dictionary<string, Tuple<string, string>> headINFO =
new Dictionary<string, Tuple<string, string>> { };
Run Code Online (Sandbox Code Playgroud)