H
Heiko65456465
Guest
Is there a description somewhere, why the check of a struct variable on null is possible?
void Process(DateTime time)
{
if (time == null)
DoSmth();
}
The if condition is never true. I would expect an error output from the compiler here, or at least a warning, so that you can possibly change the condition to
if (time == default)
Continue reading...
void Process(DateTime time)
{
if (time == null)
DoSmth();
}
The if condition is never true. I would expect an error output from the compiler here, or at least a warning, so that you can possibly change the condition to
if (time == default)
Continue reading...