And plus you can't assign null to a DateTime, because System.DateTime is
a value-type.

Kirk

-----Original Message-----
From: Marsh, Drew [mailto:[EMAIL PROTECTED]] 
Sent: Friday, 3 May 2002 5:48 a.m.
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] DateTime/Calender Questions


Scott Densmore [mailto:[EMAIL PROTECTED]] wrote:

> Well null would be ok.. But null logic with dates is a PITA and I 
> really don't want to go down that road since you could have something 
> (well in our case) that looks like this

Instead of null use DateTime.MaxValue. Sure,  you lose one 100
nanoseconds of time, but you avoid having to deal with the null concept.
;)

Later,
Drew

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to