标签:style class blog code color string
List<T> l = new List<T>(); l = l.Select(a => new { a, newID = Guid.NewGuid() }).OrderBy(b => b.newID).Select(c=>c.a).ToList();
List<string> iList = new List<string>(); iList = iList.Select(a => new { a, newID = Guid.NewGuid() }).OrderBy(b => b.newID).Select(c => c.a).ToList();//随机排序
标签:style class blog code color string
原文地址:http://www.cnblogs.com/Yellowshorts/p/3790928.html