[Mono-list] BinaryFormatter serialization accross .NET and Mono
robertj at gmx.net
Mon Feb 23 05:57:42 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:
The output is not always bitwise equal, but after a roundtrip the same
objects are created.
This usually happens due to minor serialization metadata differences
or while roundtripping between different framework versions.
More information about the Mono-list