http://blog.csdn.net/wanzhuan2010/article/details/6205884
LINQ之路系列博客导航
http://www.cnblogs.com/lifepoem/archive/2011/12/16/2288017.html
用一句Linq把一个集合的属性值根据条件改了,其他值不变
list去重
list.Where((x, i) => list.FindIndex(z => z.Miid == x.Miid) == i)
list.Distinct();//这个方法 貌似不起作用,不是很好用,上面那一句 有作用!
Dictionary排序:参考文章:https://www.cnblogs.com/softidea/archive/2013/09/27/3342384.html
Dictionary<DateTime, String> dicAsc = dd.OrderBy(p => p.Key).ToDictionary(p => p.Key, p => p.Value);
Dictionary<DateTime, String> dicDesc = dd.OrderByDescending(p => p.Key).ToDictionary(p => p.Key, p => p.Value);