C# “anyString”.Contains(‘\0’, StringComparison.InvariantCulture) returns true in .NET5 but false in older versions
not a bug, a feature The issue that I’ve opened has been closed, but they gave a very good explanation. Now… In .NET 5.0 they began using on Windows (on Linux it was already present) a new library for comparing strings, the ICU library. It is the official library of the Unicode Consortium, so it … Read more