B
Blue Ball
Is it always safe to use == to compare String?
e.g. if (my_str == "test") { }
or is it better to use: if (String.Compare(my_str, "test") == 0) { }
In old ASP, I remembered that there was slightly difference between the
operator compare and function compare. Can anyone confirm if I can use ==
safely?
e.g. if (my_str == "test") { }
or is it better to use: if (String.Compare(my_str, "test") == 0) { }
In old ASP, I remembered that there was slightly difference between the
operator compare and function compare. Can anyone confirm if I can use ==
safely?