I used a Tree control to view some hierarchical items base on a nested (parent child) table .
Every node has a NameValue format that accept either a name and value .
But only Leaves (last nodes) have integer values and values of parents are left blank (just the Names they have) .
I want to summarize values so that every parent hold the sum of it's sub nodes and leaves values .
I think recursion or maybe LINQ is needed to accomplish this task but i don't know how ?
maybe some pseudo code will be helpful for me .
Thanks in advance for the help!