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 of 10,000 customers and 500,000 orders it beats every alternative by a wide margin. The reason is what each...
