SyntaxFix
Write A Post
Hire A Developer
Questions
The compiler replaces null comparisons with a call to HasValue, so there is no real difference. Just do whichever is more readable/makes more sense to you and your colleagues.
HasValue