Compare Two Lists in C# by a Single Property
Put the key we are matching on into a HashSet, then filter the other list against it. Two lines, and it beats every alternative by a wide margin once the lists are more than a few hundred items. The reason is what each approach costs per element. A nested loop or a...
