[Mono-bugs] [Bug 45970][Nor] New - TimeSpan is serialized differently between Mono and MS.NET
Tue, 8 Jul 2003 10:02:09 -0400 (EDT)
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 email@example.com.
--- shadow/45970 Tue Jul 8 10:02:09 2003
+++ shadow/45970.tmp.27443 Tue Jul 8 10:02:09 2003
@@ -0,0 +1,44 @@
+Product: Mono/Class Libraries
+OS: Debian Woody
+Summary: TimeSpan is serialized differently between Mono and MS.NET
+Description of Problem:
+If a member of a class implementing ISerializable is of type TimeSpan it is
+serialized differently on Mono and MS.NET using BinaryFormatter.
+If a single TimeSpan is serialized it's done the same way on both
+platforms. Microsoft seems to format it as primitive type when serialized
+as member of a ISerializable class.
+Steps to reproduce the problem:
+1. Compile the attached sample
+2. Run it on Mono and MS.NET
+3. Compare the resulting file.
+Resulting binary file differs.
+Resulting binary file is equal.
+How often does this happen?
+BinaryTypeCode of TimeSpan seems to be 12. There is no TypeCode for it :-(