首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
c#GroupBy的使用
c#GroupBy的使用
it
2023-01-22
75
var
groupList1
=
grantCard
.
GroupBy
(
x
=
>
new
{
x
.
ProductId
}
)
.
Select
(
group
=
>
new
{
ProductId
=
group
.
Key
,
Quantity
=
group
.
Count
(
)
}
)
.
ToList
(
)
;
转载请注明原文地址: https://lol.8miu.com/read-1184.html
最新回复
(
0
)