IDateTime doesn't implement IComparable
galmok opened this issue · comments
galmok commented
I was using linq with DateTime objects, now converted to IDateTime, but ordering them didn't work due to IComparable not being implemented for IDateTime.
The original DateTime object inherits from these interfaces:
IComparable, IFormattable, IConvertible, ISerializable, IComparable,IEquatable
Is this something IDateTime is supposed to offer?
Jozef Izso commented
Yes, it makes sense for the wrapper to implement all the interfaces of the wrapped type.