C# HasValue vs !=null -


this question has answer here:

my question might sound little foolish bugs me every time face it. difference between :

where value.hasvalue 

and

where value != null 

does hasvalue checks if value null?

they both same thing, pick 1 , stick have consistency. there nothing gain using either in end.


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -