Possible NullReferenceException and Value Analysis Assert Settings Follow
I've added my custom assertion to the settings, but I'm still getting a spurious possible null reference warning. What am I doing wrong? (Screenshots attached.)
Attachment(s):
Resharper2.PNG
Resharper1.png
Please sign in to leave a comment.
Hi Ian,
The settings for your Assert method is not valid. This method don't check
firts argument on null value.
The Assert method terminates if the first argument is false. The right setting
for your method: 0 agrument - == true.
Best regards,
Alexander Nesterenko
www.safedevelop.com
That did it. I thought I'd tried that, but apparently not! Thanks very much.