[Mono-bugs] [Bug 82400][Nor] Changed - [PATCH] DateTime binary serialization incompatible with MS.NET 2.0

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 21 14:47:56 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by robertj at gmx.net.

http://bugzilla.ximian.com/show_bug.cgi?id=82400

--- shadow/82400	2007-08-21 14:26:49.000000000 -0400
+++ shadow/82400.tmp.4095	2007-08-21 14:47:56.000000000 -0400
@@ -168,6 +168,20 @@
 better. However, this seems to be a cleaner solution IMO.
 
 Note: This patch does NOT rely on Lionel's patch. In fact, this does
 not solve the standard Serialize/Deserialize issues. This only fixes
 the Remoting serialization as MS treats the DateTime as a primitive in
 remoting.
+
+------- Additional Comments From robertj at gmx.net  2007-08-21 14:47 -------
+> This only fixes the Remoting serialization as MS treats the
+> DateTime as a primitive in remoting.
+
+For the records:
+
+This only fixes the *binary formatter*.
+The ISerializable implementation is still needed for custom formatters.
+
+
+Any reasons why you didn't use DateTime.ToBinary () and
+DateTime.FromBinary ()?
+


More information about the mono-bugs mailing list