DateTime problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

(.net 2.0) Why is it that a DateTime's intellisense shows "Now" as a property
when not in a control structure, but if I declare a new instance within an
if{} block it doesnt support "now"?
Thanks, Mark

DateTime x1 = DateTime.Now; // correctly appears

if (true)
{
DateTime x2 = DateTime.Now; // this doesnt happen
}
 
Hi,

I see no problem here , are you sure you are copying verbatim your problem
code?
 
Back
Top