I have a class called Item. Item has an identifier property called ItemCode which is a string. I would like to get a list of all non-distinct Items in a list of Items.
E
My take:
var distinctItems = from list in itemsList group list by list.ItemCode into grouped where grouped.Count() > 1 select grouped;