This must be a .NET bug, right?
"KonNy".StartsWith("Kon") returns false, while "KonNy".StartsWith("Ko") and "KonN".StartsWith("Kon") return true.
Is there anything I’m missing here?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Repeated from comments:
I don’t know .NET specifically, but I suspected you might observe this phenomenon if
StartsWithfollowed a collation wherennywas a single letter, such as Hungarian. If I’m right and if you change your collation to a neutral one, your “bug” would disappear. 🙂