Is there any reason why I should choose one of these over the other? Or doesn't it really matter?
var a = data.Cars.Where(ø => ø.LicensePlate != null);
var b = data.Cars.Where(ø => ø.LicensePlate.HasValue);
I have used != null
before, but starting to think I should maybe switch, since HasValue kind of reads better. What do you guys think? Is there any difference at all? Other than one character extra? Any performance differences? Sql differences?