How to combine 4 counts into one with LINQ

Group by looks for the configured group detector Lambda (our case the FileName) for the group member rows and offers it under grp

With the let statement, we can define memorized values when processing / looping over all groups

In other words: after group by… line the group processing / looping will begin (as we have not written others)

Does it help?

For formal / docu:

with the Link to the Query Syntax Clauses:

1 Like