Resharper 6.0, VS 2010.
CircleYN is type "bool?"
if (row.CircleYN.HasValue && row.CircleYN.Value)
row.CircleYN.Value is underlined in blue and Resharper says: Possible System.InvalidOperationException. I may be having brain fade here but if I've checked HasValue how can that be right?
If I take Resharper's suggested action it changes the code to:
if (row.CircleYN != null && (row.CircleYN.HasValue && row.CircleYN.Value))
but there's still a blue line!
PS Off-topic rant, sorry: This WYSIWG editor is horrible and I'm getting script errors in IE9.