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
According to §12.10.5 a string concatenation never produces a null string:
These overloads of the binary + operator perform string concatenation. If an operand of string concatenation is null, an empty string is substituted. Otherwise, any non-string operand is converted to its string representation by invoking the virtual ToString method inherited from type object. If ToString returns null, an empty string is substituted.
strings=null;s=s+null;
s.ToString();// S2259: FP - s is not null here
Other SE rules are affected as well. Tests are added as part of #7039 in commit 09cf5fb
The text was updated successfully, but these errors were encountered:
According to §12.10.5 a string concatenation never produces a null string:
Other SE rules are affected as well. Tests are added as part of #7039 in commit 09cf5fb
The text was updated successfully, but these errors were encountered: