C# linq泛型 字典集合 排序

      IList<MediaInfo> l = new List<MediaInfo>();
      l.OrderByDescending(m => m.Name);//降序

      Dictionary<int, string> dList = new Dictionary<int, string>();
      List<KeyValuePair<int, string>> list = dList.OrderByDescending(k => k.Value).ToList();//降序

posted @ 2011-09-02 14:50  火腿骑士  阅读(590)  评论(0编辑  收藏  举报