Linq for sum of distinct addresses
问题 I have a DataTable of Products. Each product has a weight and a return address. The return address is comprised of 7 fields. I need to cycle through the distinct addresses and sum up the total weight of product. Example table would look like this... Product weight address1 address2 address3 city state postcode country A123 6 House 1st Street some place a city a state AB1 2CD GB A456 3 House 1st Street some place a city a state AB1 2CD GB A789 4 House 1st Street some place a city a state AB1