【发布时间】:2012-04-24 01:47:56
【问题描述】:
我有这个字典
Dictionary<Guid, DateTime> myDic = new Dictionary<Guid, DateTime>();
按 DateTime 对其 DESC 进行排序的最佳方法是什么?是LINQ吗?
如何在代码中完成?
谢谢!
【问题讨论】:
-
排序什么?
Guid?DateTime?还是KeyValuePair<,>? -
改用排序字典。
标签: c# .net linq dictionary