Hi I have some problems with sequenceEqual when I have situation like this:
Sentence s1 = new Sentence { Text = \"Hi\", Order = 1 };
Sentence s2 = new Senten
As the MSDN states here:
Determines whether two sequences are equal by comparing the elements by using the default equality comparer for their type.
Sentence in your case is a reference type with default Equals and GetHashCode, which means it will be using referential equality for each element.
You can always use the overload which accepts IEqualityComparer