var que = GlobalData.QueList.GroupBy(x => new { x.Type }).Distinct().SelectMany(t => new List<string> { t.Key.Type });
List<string> list= que.ToList();
c# List分组转换为List<string>
最新推荐文章于 2022-06-15 16:02:21 发布
var que = GlobalData.QueList.GroupBy(x => new { x.Type }).Distinct().SelectMany(t => new List<string> { t.Key.Type });
List<string> list= que.ToList();