Compare Two Lists in C# by a Single Property
To compare two lists on a single property, put the key we are matching on into a HashSet, then filter the other list against it. Two lines, and on our benchmark it beats every alternative by a wide margin once the lists are more than a few hundred items. The reason is...
