Java TreeMap相当于C#? [英] Java TreeMap equivalent in C#?

查看:382
本文介绍了Java TreeMap相当于C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我咨询的大多数地方都说要使用SortedList,但问题是我移植的程序实际上使用了重复键(按顺序区分),这是TreeMap允许的,但不是SortedList。

Most places I've consulted say to use SortedList, but the problem is that the program I'm porting actually uses duplicate keys (differentiated by order), which is permissible with TreeMap, but not SortedList.

任何建议?

推荐答案

SortedDictionary 类帮助?

这篇关于Java TreeMap相当于C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆