Are .NET string operations case sensitive?

前端 未结 4 2410
时光说笑
时光说笑 2021-02-20 09:33

Are .NET string functions like IndexOf(\"blah\") case sensitive?

From what I remember they aren\'t, but for some reason I am seeing bugs in my app where the

4条回答
  •  忘了有多久
    2021-02-20 09:59

    .NET string comparisons are indeed case sensitive. You could use things like ToUpper() to normalize things before comparing them.

提交回复
热议问题