ReadOnlySpan<char> and strings - How not to compare them
Many know that you can take
ReadOnlySpan<char> objects when dealing with
strings. They give you a direct way of operating on the underlying memory. Often times you can use them interchangeably, but there are scenarios where you really have to watch out what is going on.
This blog post will have a look at a major problem with
ReadOnlySpan when used like a "regular"