Suppressing CA1062 with a Helper Function
By Eric
—
—
4 minute read
I think Visual Studio's static analysis warning for checking parameters for null before they are used is generally a good idea, but the code to check the parameters can get really tedious.
Before addressing the tedium, though, why does it even matter whether you check for null arguments and throw …