I would like to compare two lists of objects. The objects have four different properties. I need to compare only three of them as sequence (only three because one is always diff
You could use the SequenceEqual overload that allows you to pass in an IEqualityComparer<T>
implementation that only includes the properties that you wish to compare.
The example on that linked page is a good one.
You can use the Enumerable.SequenceEqual overload that allows you to specify a custom IEqualityComparer
- implement a custom one that only compares the three properties you are interested in.