I have a constructor method similar to this:
public class Foo
{
public Foo (DateTime? startFrom)
{
_startFrom = startFrom;
}
}
And I call this constructor method as follows:
var context = new Foo(new DateTime(2012, 7, 15, 11, 2, 10, 2));
But when I debug it, I found that 002 milliseconds was set to 000 when passed to the default constructor, which is the Nullable DateTime parameter.
Is it normal that I lose milliseconds of DateTime when I pass it as a parameter to a method that takes a Nullable DateTime value?
source
share