[Mono-list] BinaryFormatter serialization accross .NET and Mono
schmmd
michael at schmitztech.com
Fri Feb 6 17:20:05 EST 2009
Hi, I am asking to learn if it is a goal of the Mono project to have
consistent serialization across Mono and .Net with respect to the
BinaryFormatter. Serialization is the same in some cases. For example,
serialization of a byte array is the same in .NET and Mono. However,
serialization of a struct containing a byte array is not. Consider the
attached program. In .NET the output is:
151
0100025525525525510000000122000588499112443286101114115105111110614946484648464844326711710811611711410161110101117116114971084432801179810810599751011218411110
710111061110117108108510002783101114105971081051229711610511111069120971091121081014683116114117991161000511111610410111422000930001530006000212345611
However, in mono 2.2 it is:
96
010002552552552551000000012200038499112510002783101114105971081051229711610511111069120971091121081014683116114117991161000511111610410111422000930001530006000212345611
Is this a bug or is consistency between .NET and Mono not a goal?
http://www.nabble.com/file/p21881760/Program.cs Program.cs
--
View this message in context: http://www.nabble.com/BinaryFormatter-serialization-accross-.NET-and-Mono-tp21881760p21881760.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list