C# - I know I can do this in LINQ, but I can't get it to work -


I got a list of regional group objects with two properties: a list of a "number" and "area" & lt

I have to produce the distribution of the number of combined areas for each number [area 1] - number: 1 - list <5> has 5 members

[ Area 2] - Number: 3 - List <2> Members <

[Area 3] - Number: 4 - List> <9> <9> <9>

[Area 4 ] - Number: 1 - List <5> <5>

[Area5] - Number: 3 - List> There are 4 members

I need to do something like this:

Number: 1 - Total 10 members

Number: 3 - Total 6 members

Number: 4 - Total 9 members

I am walking with different tutorials, and I think I need to use groups, but I am not doing anything.

Any help? Thanks!

The answer to this similar question can be found:

or this one


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -