I have a function like
public void Test(DateTime time)
DateTime date = time.Date;
Debug.Assert(date >new DateTime());
I run this function too many times with no problem. however sometimes I get exceptions in line "Debug.Assert(date >new DateTime());".
I checked, and the variable "date" has been assigned to year=1,month=1, and day =1. And the variable "time" is definitely larger than "new DateTime()"
Is it a .net framework bug? I'm using DotNet 2.0
View Complete Post