title: List c# distinct by item and sum other items
body: <p>Imagine a list of objects:</p>
  
  <pre><code>public class Foo
  {
      public string Name {get; set;}
      public int Total {get; set;}
  }
  </code></pre>
  
  <p>And now, my list contains 3 objects:</p>
  
  <pre><code>new Foo {Name="object", Total=3};
  new Foo {Name="object", Total=7};
  new Foo {Name="object", Total=5};
  </code></pre>
  
  <p>How to distinct by the name and sum the totals? i.e. The List will have just one object:</p>
  
  <pre><code>new Foo {Name="object", Total=15};
  </code></pre>
  
  <p>Thanks in advance!</p>