gpt4 book ai didi

c# - Linq to Lambda 表达式 c#

转载 作者:太空宇宙 更新时间:2023-11-03 20:55:56 25 4
gpt4 key购买 nike

var ListInOrder = (from f in finaldatelist
group f by new { f.RoomID, f.RateGroupID } into g
select g);

into g 和 select g 部分的 lambda 表达式是什么?

这是我现在得到的:

 var ListInOrder = finaldatelist.GroupBy(x => x.RoomID, x => x.RateGroupID).Select();

最佳答案

finaldatelist.GroupBy(x => new { x.RoomID, x.RateGroupID });

关于c# - Linq to Lambda 表达式 c#,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50500028/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com