How should I interpret the "null check patter…. I would imagine that checking for null is more performant than checking the type, in which case the suggested option is better because it produces the same result with better performance. The performance difference would be negligible unless the code was repeated many times but that doesn't make it stupid to suggest it.
Web It will do a null check, no matter if there’s an operator.
0 komentar