相关疑难解决方法(0)

.NET中的反向排序字典

有什么方法可以通过c#中的SortedDictionary向后(反向)迭代?

或者有没有办法以降序开始定义SortedDictionary?

.net c# iteration reverse dictionary

40
推荐指数
4
解决办法
6万
查看次数

使用SortedDictionary - 获取下一个值

我使用SortedDictionary来存储按整数排序的值.

我需要在特定的现有整数后得到下一个值.我更喜欢使用枚举器,但没有GetEnumerator(Key k)或类似的功能.

SortedDictionary<int, MyClass> _dict;


void GetNextValue(int start, out MyClass ret)
{
}
Run Code Online (Sandbox Code Playgroud)

.net c# dictionary

5
推荐指数
1
解决办法
3950
查看次数

标签 统计

.net ×2

c# ×2

dictionary ×2

iteration ×1

reverse ×1