相关疑难解决方法(0)

从字典中获取第一个元素

我有以下声明:

Dictionary<string, Dictionary<string, string>> like = new Dictionary<string, Dictionary<string, string>>();
Run Code Online (Sandbox Code Playgroud)

我需要获取第一个元素,但不知道键或值.最好的方法是什么?

.net c# asp.net .net-3.5

44
推荐指数
4
解决办法
13万
查看次数

检索字典中的第n个键VBA

是否可以从字典中提取第 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) 中键的值

excel vba dictionary

4
推荐指数
1
解决办法
3407
查看次数

如何从C#中的字典中检索第一行?

如何从此字典中检索第一行.我记录了大约15条记录.

Dictionary<string, Tuple<string, string>> headINFO = 
                                   new Dictionary<string, Tuple<string, string>> { };
Run Code Online (Sandbox Code Playgroud)

c# asp.net

0
推荐指数
2
解决办法
2147
查看次数

标签 统计

asp.net ×2

c# ×2

.net ×1

.net-3.5 ×1

dictionary ×1

excel ×1

vba ×1