title: How can I get running totals of integer values from a SortedDictionary?
body: <pre><code>SortedDictionary&lt;int, string&gt; typeDictionary = new SortedDictionary&lt;int, string&gt;(); 
  SortedDictionary&lt;int, int&gt; lengthDictionary = new SortedDictionary&lt;int, int&gt;();
  </code></pre>
  
  <p>lengthDictionary has values in key value pair as follows:</p>
  
  <pre><code>&lt;1,20&gt;
  &lt;2,8&gt;
  &lt;3,10&gt;
  &lt;4,5&gt;
  </code></pre>
  
  <p>i want LINQ query which will return me new list like as follows</p>
  
  <pre><code>&lt;1,20&gt;
  &lt;2,20+8=28&gt;  // 20 from key 1
  &lt;3,28+10=38&gt; // 28 from key 2
  &lt;4,38+5=43&gt;  // 38 from key 3
  </code></pre>
  
  <p>Result should like this:</p>
  
  <pre><code>&lt;1,20&gt;
  &lt;2,28&gt;
  &lt;3,38&gt;
  &lt;4,43&gt;
  </code></pre>