© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
27 replies
saki

❔ Sum quantity in a list by name value?

I've joined all of the necessary data from 3 json files into their own object. What I now want to do is take all of the entries in that list and sum the quantity for each of the product names

I'm thinking of separating them into different lists for each product, summing them, and then joining them together in a final array but idk if that's the best route
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Is List.Contains(Object) checks by address or by value?
C#CC# / help
16mo ago
sum of all numbers divisible by 3 in a string
C#CC# / help
4y ago
how to search for a value in a list
C#CC# / help
4y ago
Finding a button by name
C#CC# / help
2y ago