# “CompareToVsEquals” (Problem)

Can the two lines coincide by the `String.CompareTo` method, but differ by the `String.Equals` method? How to contact them the `==`?

[Solution](https://andreyakinshin.gitbook.io/problembookdotnet/en/strings/comparetovsequals-s)
