> For the complete documentation index, see [llms.txt](https://andreyakinshin.gitbook.io/problembookdotnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://andreyakinshin.gitbook.io/problembookdotnet/en/strings/comparetovsequals-s.md).

# “CompareToVsEquals” (Solution)

## Answer

Yes.

## Explanation

`CompareTo` executes according to CultureInfo, `Equals` — without.

An example: the string `"ß"` ([Eszett ](https://en.wikipedia.org/wiki/ß), \u00df) and `"ss"` will be equal by `CompareTo` in German CultreInfo.

The `==` operator works like the `String.Equals` method.

[Problem](/problembookdotnet/en/strings/comparetovsequals-p.md)
