摘要: 转载自:https://www.cnblogs.com/5696-an/p/5625142.html 自定义类: Dictionary<int,自定义类> 按照Dictionary的Key值 升序排序(OrderBy)、降序排序(OrderByDescending): Dictionary<int, 阅读全文
posted @ 2018-01-17 15:03 xunhanliu 阅读(5330) 评论(0) 推荐(0) 编辑
摘要: 转载自: http://blog.51cto.com/psnx168 在VC中使用过CMap以及在Java中使用过Map的朋友应该很熟悉,使用Map可以方便实现基于键值对数据的处理,在C#中,你就需要实现IDictionary接口的关键字值集合类,允许通过关键字(如字符串名)进行索引,这也可以使用索 阅读全文
posted @ 2018-01-17 14:49 xunhanliu 阅读(4239) 评论(0) 推荐(0) 编辑