"Use " NotEqualsExpression.HasValue " as negative logic is taxing on the brain."
Human brain can understand positive expressions and statements faster than negative ones. To improve code readability it is better to use HasValue
rather than != null
.
if (myVariable != null)
{
...
}
should be 🡻
if (myVariable.HasValue)
{
...
}