[Mono-list] Dictionary`2 compatibility

Danny dgortonii at gmail.com
Thu Mar 19 22:57:15 EDT 2009


One of the few areas of incompatibility I've had with Mono is binary 
serialization.  It's to be expected given the nature of that beast.

The way I handle it is to implement ISerializable in my code and 
serialize my members myself.  Then all the private names of the members 
stored in the SerializationInfo match on the inbound side.  If you do 
this, check the docs and don't forget the deserializing constructor.





zolof wrote:
> Hi,
> I serialize a dictionary using Microsoft .NET and a BinaryFormatter.
> When I try to deserialize it using Mono, I get an exception.
> Find out attached sample file: 
> http://www.nabble.com/file/p22581613/Program.cs Program.cs 
> Is there a way to fix this?
> Thanks for your help


More information about the Mono-list mailing list