Is it possible to set organization structure string comparison case insensitive by default?
If I
string.tartsWith ("stringToCompare", StringComparison.CurrentCultureIgnoreCase) This works but when I < / P>
string.Contains ("strigToCompare") must be used It does not have overload I
You can simply change the case of both areas in the upper case:
string string compact = "some string"; String.tuper () This includes (stringToCompare.ToUpper ()) By making all the cases in upper case will make search case insensitive. Of course, ToLower () will also work as.
Comments
Post a Comment