This question already has an answer here:
- Which is preferred: Nullable<>.HasValue or Nullable<> != null? 6 answers
My question might sound a little foolish but it bugs me every time i face it. What is the difference between :
where value.HasValue
and
where value != null
Does HasValue checks if value
is null?