[英]string.ToLower() method in C# doesn't work correctly
When I call this method for strings which begin with I
it returns something like that: ı..
because of that I cannot compare string.ToLower().StartsWith("i")
. 当我为以
I
开头的字符串调用此方法时,它将返回类似以下内容: ı..
因此,我无法比较string.ToLower().StartsWith("i")
。
What to do? 该怎么办?
请改用ToLowerInvariant 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.