Possible Duplicate:
C# okay with comparing value types to null
Why value type as DateTime and Decimal whose the equality operator is overloaded can be compared with null value?
I always thought that value types are non-nullables values, but I'm allowed to write the following code:
DateTime dateTime = DateTime();
if(dateTime == null)
//do something
The compilation doesn't throw an exception, however the comparison is always false.
Thank you in advance.