title: using linq to merge items together in a collection
body: <p>I have a list of objects (call them type salesItems)   Lets say these items have 50 properties, with Name, price, quantity being 3 of them).  I would like to know how to merge the list together combining any salesItems by name using the following logic:</p>
  
  <p>If there are multiple salesOrders that have the same Name:</p>
  
  <ul>
  <li>Combine them into one SalesOrder with the same Name</li>
  <li>Set the quantity to the sum of the quantities</li>
  <li>Set the price, and all of the other properties using the values of the first</li>
  </ul>
  
  <p>I would like to do with linq.  I realize i could use a big for each c# loop instead.</p>
  
  <p>If there are additional items in the list I would like to follow similar logic for those as well.</p>
  
  <pre><code>EX:    A salesOrder list with (A,B,C,D,E)
  
  A: Name=ball  Price= 2.24  Quantity=1   (other values = bla bla)
  B: Name= ball  Price = 15.33  Quantity=3   (other values)
  c: Name= bat  Price = 22.14  Quantity=3    (other values)
  D: Name= bat Price= 19.22 Quantity=2    (other values)
  E: Name = ball Price=4.32 Quantity=2   (other values)
  </code></pre>
  
  <blockquote>
    <p>Result list I want 2 Sales orders in list (A,C) A:   Name=ball  Price=
    2.24  Quantity=6   (other values = bla bla from a's properties) c: Name= bat  Price = 22.14  Quantity=5    (other values from c's
    properties)</p>
  </blockquote>