You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RCS1156 suggests changing s == "" to s?.Length == 0, but it should instead change it to string.IsNullOrEmpty(s).
.NET already implements this functionality with the IsNullOrEmpty functionality, I don't think it should be reimplemented using the Length field and a null check. The in-built function also increases readability.
The text was updated successfully, but these errors were encountered:
RCS1156 suggests changing
s == ""
tos?.Length == 0
, but it should instead change it tostring.IsNullOrEmpty(s)
..NET already implements this functionality with the IsNullOrEmpty functionality, I don't think it should be reimplemented using the Length field and a null check. The in-built function also increases readability.
The text was updated successfully, but these errors were encountered: