I\'m searching for a simple and fast way to check if all my Listitems have the same value for a member.
foreach (Item item in MyList) { Item.MyMember = &
I think this is the shortest and most elegant solution:
bool allSame = list.GroupBy(item => item.TheProperty).Count == 1;