Is there a reason to choose one of these over the other?
DateTime myDate = new DateTime();
or
DateTime myDate = default(DateTime);
Both of them are equal 1/1/0001 12:00:00 AM
.
Is there a reason to choose one of these over the other?
DateTime myDate = new DateTime();
or
DateTime myDate = default(DateTime);
Both of them are equal 1/1/0001 12:00:00 AM
.