[Mono-dev] Problem with BinarySerialization

PFJ pjohnson1 at uclan.ac.uk
Tue Feb 2 08:01:56 EST 2010


Robert Jordan wrote:
> The serialization infrastructure heavily relies on type/assembly 
> identity, but what you're doing here is trying to create an object
> from serialization data generated from a totally different class.
> You should implement "Elements" in a separated assembly which you 
> reference from both apps. Then, in you "Form", you should aggregate 
> Elements, i.e. make it a field, because de/serializing a Form
> is not what you want. Really.


What I have done is created a completely different app to generate the
serialized data - it's intended to be run once, create the data file and
that's it. 

The file is then sucked in to the 2nd application for deserializing. Would
what I want to do be better using an Xml serialized file or will I hit the
same problem? Failing that I'm guessing I'll need to draw the file into a
list (more or less the reverse of creating the list in the first place).


View this message in context: http://old.nabble.com/Problem-with-BinarySerialization-tp27419333p27419955.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list