c# List分组转换为List<string>

var que = GlobalData.QueList.GroupBy(x => new { x.Type }).Distinct().SelectMany(t => new List<string> { t.Key.Type });
List<string> list= que.ToList();

posted @ 2022-01-28 10:10  哪啊哪啊神去村  阅读(1)  评论(0编辑  收藏  举报