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

Jonathan Hseu vomjom at vomjom.net
Fri Nov 6 11:12:36 EST 2009


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

> Jonathan Hseu wrote:
> > 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.
>
> Please read the bug carefully.
>
> Here is the DateTime.cs patch:
>
> https://bugzillafiles.novell.org/attachment.cgi?id=172471
>
> Then search for "DateTimeISerializable.diff" at
> https://bugzilla.novell.com/show_bug.cgi?id=325067
> and read the comments.


Well, my patch acts a little differently (it, by the way, passes all the
regression tests for both 2.0 and 1.1).

I just tested it and it also makes 1.1 and 2.0 binary compatible with each
other and .NET, assuming you are on a new version of mono for both profiles.

So, the only issue is that it'll stop being compatible with older versions
of mono, but it's possible to make a workaround so that the new mono will be
able to Deserialize older mono binary DateTimes.

And, in the long run, people will stop using older versions of Mono.  But
people will continue to use .NET, and this issue will come up over and over
again.


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


More information about the Mono-devel-list mailing list