See following example:
Visual BasicModule Module1
Function Foo(text As String) As Integer
'CRR0027
Return text.Length
End Function
Function Bar(text As String) As Integer
'No CRR0027
Return (Function() text.Length)()
End Function
End Module
Hi Robert,
I have managed to reproduce the issue. Please give us some time to research the issue in detail.
Hi Robert,
Currently, the Possible NullReference.Exception analyzer skips a check for lambda parameters. It was done after we received users' comments that reports for lambda parameters sometimes create a lot of noise. We are working on providing settings for this analyzer (including an option for lambda parameters). It is a complex task and its implementation requires some time. We will inform you of our progress.