吃鸡游戏
Group您可以借助以下内容扩展s SelectMany: var groupedCustomerList = userList .GroupBy(u => u.GroupID) // Grouping .SelectMany(group => group) // Expand groups back (flatten) .ToList();这是怎么回事:initial: {tbl1, tbl1, tbl2, tbl3, tbl1, tbl4, tbl2}after GroupBy: {Key = "1", {tbl1, tbl1, tbl1}}, {Key = "2", {tbl2, tbl2}}, {Key = "3", {tbl3}}, {Key = "4", {tbl4}},after SelectMany: {tbl1, tbl1, tbl1, tbl2, tbl2, tbl3, tbl4}