Guard icon indicating copy to clipboard operation
Guard copied to clipboard

Add ValidatedNotNullAttribute to IsNotNull methods

Open roryprimrose opened this issue 11 years ago • 0 comments

You can avoid CA1062 popping up by exposing a ValidatedNotNullAttribute in the library and then attributing it on the parameter in IsNotNull method. Probably won't work for expressions, but will work when the actual parameter is provided.

See http://esmithy.net/2011/03/15/suppressing-ca1062/

roryprimrose avatar Nov 05 '13 04:11 roryprimrose