c# null check pattern

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.

How should I interpret the
How should I interpret the "null check patter… from resources.jetbrains.com

Web  It will do a null check, no matter if there’s an operator.

0 komentar