Typically in a method you would do something like this:
if(myParam == null)
throw new ArgumentNullException();
Then you don't see the little squigglies from R# telling you that there is a possible null reference when you go to use the parameter later in the method.
However, for many reasons I have moved code like this into a resuable class library so I just do something like this:
This handles logging, etc and will throw an exception if it is null. However, when I do this, R# gives me the squigglies when I use myParam later in my method.
Is there anything I can do to let R# know that the null check is being performed in that method?