[Mono-list] BinaryFormatter serialization accross .NET and Mono

Jeffrey Stedfast fejj at novell.com
Mon Feb 23 10:10:48 EST 2009

Chris Howie wrote:
> On Fri, Feb 6, 2009 at 5:19 PM, schmmd <michael at schmitztech.com> wrote:
>> 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.
>> [snip]
>> Is this a bug or is consistency between .NET and Mono not a goal?
> I do not believe it is a very high-priority goal.  You might try the
> SoapFormatter class.  It at least produces more readable output so if
> there is an issue it's easier to spot, and hence easier for the
> developers to fix.
Things might be able to be serialized slightly differently and yet
achieve the same results. However, I would suggest that, if things are
not working using the binary formatter between .NET and Mono, then you
should submit a bug. It's important that Mono and .NET are able to
communicate properly.


More information about the Mono-list mailing list