0

Is there anyway to turn off "Check if 'variable' is null" in R# 6.1.0?

Having way to many false positives and it is a warning with no inspection setting I can change. :(

The most common false positive is with .First methods...  

 

var survey = _infoturnHelper.Surveys.First(x => x.ImportId == template.ImportId);


Which according to MSN, will either return something or throw an exception.

http://msdn.microsoft.com/en-us/library/bb291976.aspx

So why is R# forcing me to null check it?

4 comments

Please sign in to leave a comment.