You should use string.Equals
instead of ==
or !=
, to make string comparison rules explicit.
"" == "";
// Should be
string.Equals("", "", StringComparison.Ordinal);
"" != "";
// Should be
!string.Equals("", "", StringComparison.Ordinal);
You should use string.Equals
instead of ==
or !=
, to make string comparison rules explicit.
"" == "";
// Should be
string.Equals("", "", StringComparison.Ordinal);
"" != "";
// Should be
!string.Equals("", "", StringComparison.Ordinal);