Closed ALiwoto closed 3 years ago
they won't check if left or right is null or not. they will just call GetValue() directly, so it will result in a NullRefrenceException
left
right
null
GetValue()
NullRefrenceException
public static StrongString operator +(StrongString left, StrongString right) { return left.GetValue() + right.GetValue(); }
It's almost fixed, but needs more tests, since Append overloads are using it
Append
they won't check if
left
orright
isnull
or not. they will just callGetValue()
directly, so it will result in aNullRefrenceException