[Mono-dev] [PATCH] Make DateTime binary compatible with .NET

Jonathan Hseu vomjom at vomjom.net
Fri Nov 6 10:32:56 EST 2009


On Fri, Nov 6, 2009 at 9:18 AM, Robert Jordan <robertj at gmx.net> wrote:

> Jonathan Hseu wrote:
> > Caveats:
> >
> > This new DateTime is binary incompatible (again with BinaryFormatter)
> with
> > older versions of Mono.
>
> That's the reason why the fixes attached to
>
> https://bugzilla.novell.com/show_bug.cgi?id=325067
>
> were not accepted.
>
> Robert
>

Going through the bug logs, it seems like the patch was first applied but
then later removed because it was still incompatible with .NET's version,
not because it was incompatible with older versions of mono.

My patch is completely different than the one in the bug report.  Mine
_only_ affects the DateTime.cs file whereas the one in the bug report
changed the serialization code.  My patch basically introduces the same
field names and types that are also in .NET so that it is guaranteed to be
compatible.

Also, given that mono's DateTime currently has an extra 8 byte overhead over
.NET, shouldn't this issue be looked at again?


Jonathan Hseu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091106/e9faded4/attachment.html 


More information about the Mono-devel-list mailing list