Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在多个元素上使用 groupby 进行选择?就像是
Docs.GroupBy(x => x.FieldA, x.FieldB )
谢谢。
使用匿名类型对象:
Docs.GroupBy(x => new {x.FieldA, x.FieldB} )