Utilizing .Net I am inheriting from an older class that has DateTime and bool parameters as part of its constructor. These values are pulled from a SQL database and in the SQL database these values can be null. When I populate my class and call the base constructor this fails because DateTime and bool cannot have null values in .Net.
I am aware of Nullable types (DateTime? etc.) and I can define my custom classes to utilize them and hold the null values but I have not been able to come up with a way to transfer the null value into a value that the older class with the DateTime could accept.
I hate this idea but, I thought of using a a property to translate the null to a dummy date and then back again but there is no way to determine who is calling the property so I wouldn't know when to feed a null or a dummy date back from the get.
Any Ideas would be greatly appreciated.