I have a KeyValuePair List in C# formatted as string,int
with an example content:
mylist[0]=="str1",5
mylist[2]=="str1",8
I want some code to delete one of the items and to the other add the duplicating values.
So it would be:
mylist[0]=="str1",13
Definition Code:
List<KeyValuePair<string, int>> mylist = new List<KeyValuePair<string, int>>();
Thomas, I'll try to explain it in pseudo code. Basically, I want
mylist[x]==samestring,someint
mylist[n]==samestring,otherint
Becoming:
mylist[m]==samestring,someint+otherint