DEV Community

Discussion on: A great feature in C# 9.0 (Simplified Parameter Null Validation)

Collapse
 
lleonardogr profile image
Leonardo Gasparini Romão

Yeah, I think that == suits better for conditionals or for Object construction I guess, but to organize methods reducing the number of lines of code, plus the validation implicit makes Method(string s!) better than Method(string? s)...//string validation

But I'm certainly need test this more clearly 😄