C# SortedDictionary<TKey, TValue>

命名空间:System.Collections.Generic

基本等同于 Java 的 TreeMap<T>

构造函数

Dictionary<TKey, TValue>() 基本相同,但是不能初始化容量,同时相应的比较器为 Comparer<TKey> 而不是 IEqualityComparer<TKey>

属性

Dictionary<TKey, TValue>() 相同。

方法

Dictionary<TKey, TValue>() 相同。

posted @ 2025-08-19 22:05  Varc  阅读(4)  评论(0)    收藏  举报