I know I can call linq\'s Except and specify a custom IEqualityComparer, but implementing a new Comparer class for each data type seems like an overkill for this purpose. Ca
Here' is l except r solution, based on a LINQ outer join technique:
from l in new[] { 1, 2, 3 } join r in new[] { 2, 4, 5 } on l equals r into rr where !rr.Any() select l
Will yield: 1, 3