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
}
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
}