“StringPlusNull” (Solution)
Answer
Explanation
A text fragment from C# Language Specification, the “7.8.4 Addition operator” section:
“String concatenation:
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 argument 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.”
Thus:
Links
Last updated