Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 223585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:14:07+00:00 2026-05-11T19:14:07+00:00

I got a list of RegionGroup objects with two properties: an int number and

  • 0

I got a list of RegionGroup objects with two properties: an int “number” and a list<> of “Regions”.

I need to output a distribution of number of Region objects combined for each number.
For example, given:

[Region 1] – number: 1 – list<> has 5 members

[Region 2] – number: 3 – list<> has 2 members

[Region 3] – number: 4 – list<> has 9 members

[Region 4] – number: 1 – list<> has 5 members

[Region 5] – number: 3 – list<> has 4 members

I need to get something like:

number:1 – total 10 members

number:3 – total 6 members

number:4 – total 9 members

I’ve been messing around with various tutorials, and I think I need to use groups, but I couldn’t quite get anything working.

Any help? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:14:07+00:00Added an answer on May 11, 2026 at 7:14 pm

    The answer to this similar question may help:

    Linq Query with SUM and ORDER BY

    or this one

    C# List<> GroupBy 2 Values

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a list of objects with the following properties: int TownId, int CompanyId,
I got a list that contains al the status items of each order. The
I've got a list of System.Drawing.RectangleF objects that all overlap the same RectangleF object.
I've got a list of UserControl objects; when a menu option is clicked to
I've got two List<Name> s: public class Name { public string NameText {get;set;} public
I've got a list of lists which I want to intersect: List<List<int>> input =
I got a list of Objects of class-type B (B inherits from A). How
I've got a list of websites for each US Congress member that I'm programmatically
I've got a List(Of IWorker) which contains a number of concretes. IWorker in turn
I've got a list of objects that have a Name and a list of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.