You can have nullable value types, so I dont see why it matters if it uses DateTime internally or not.
My issue is that Duration has a non nullable property called TimeStamp. But if you set the duration to Duration.Forever or Duration.Automatic it will tell you this setting Duration.HasTimeStamp to false. This seems to me like they are emulating the behavior that nullable types are suppose to provide.
For example, I believe Duration should not have a HasTimeStamp property, but instead have a nullable TimeStamp property. Then if you set the duration to automatic, the TimeStamp will be set to null. In other words, why are they emulating a nullable type with the HasTimeStamp property when they are targeting .net 2.0 and thus could simply use the same idiom as everyone else.
|