I want to get sum from the list using generics as like
List<Name,Value> test=new List<Name,Value>();
E.g list contain these element
test.Add(One,5);
test.Add(Second,5);
test.Add(Third,5);
test.Add(One,5);
test.Add(One,5);
test.Add(Second,5);
At the end want to get value as like
Element with One name contain value 15
Element with Second name contain value 10
Element with Third name contain value 5
I don’t want to iterate each element manually.
This is not an exact syntax, it an idea.
do you need something like this