wrong warning for Possibile NullRefernece Exception

Hi,

cmd = new SqlCommand(....);
var reader = cmd.ExecuteReader();
while (reader.Read())
^^^^^

warns a Possibile NullRefernece Exception, but reader is never null.

Thanks and good luck
h.leeb

Please sign in to leave a comment.