Skip to main content
 首页 » 编程设计

c#之SortedListK,V> 与 SortedDictionaryK,V> 与 DictionaryK,V>

2024年02月23日14bluestorm

<分区>

我有一大堆小 object ,每个都有一个唯一的字符串标识。我需要决定使用哪个类。

MSDN 说的是前两个

The two classes have similar object models, and both have O(log n) retrieval. Where the two classes differ is in memory use and speed of insertion and removal

因为我很少插入,大部分时间只是检索,所以似乎两者都对我有好处。那普通的旧词典呢?