相关疑难解决方法(0)

如何按键对字典进行排序

我有字典 Dictionary<string, Point>

键是c1,c3,c2,t1,t4,t2我想将它们排序为c1,c2,c3,t1,t2,t3

我正在尝试使用它进行排序

Input.OrderBy(key => key.Key );
Run Code Online (Sandbox Code Playgroud)

但它不起作用

任何想法如何解决这个问题

.net c# linq dictionary

28
推荐指数
5
解决办法
8万
查看次数

标签 统计

.net ×1

c# ×1

dictionary ×1

linq ×1