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