我有一个键值对的排序列表(均为
double
Remove(key)
IndexOfKey(key)
如果您想按键排序,然后按值排序,请查看 OrderBy 和 ThenBy。
您想要其中一件吗?
var l = new SortedList<double, double>(); l.OrderBy(p => p.Key).ThenBy(p => p.Value); //or l.OrderBy(p => p.Value);