[Mono-bugs] [Bug 45970][Nor] New - TimeSpan is serialized differently between Mono and MS.NET
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
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 joergr@voelcker.com.
http://bugzilla.ximian.com/show_bug.cgi?id=45970
--- shadow/45970 Tue Jul 8 10:02:09 2003
+++ shadow/45970.tmp.27443 Tue Jul 8 10:02:09 2003
@@ -0,0 +1,44 @@
+Bug#: 45970
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Debian Woody
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: JoergR@voelcker.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+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.
+
+Actual Results:
+Resulting binary file differs.
+
+
+Expected Results:
+Resulting binary file is equal.
+
+
+How often does this happen?
+Always.
+
+Additional Information:
+BinaryTypeCode of TimeSpan seems to be 12. There is no TypeCode for it :-(