How Apply Binary Formatter to Referenced Classes

A

andrew

I was earlier trying to persist a windows forms control to
disk using the binary formatter class.

I have devised a workaround, however I have Classes added
in as references to my project which still won't serialize
properly.

I have tested the referenced classes separately as
individual projects and added <Serializable(()> Attribute
tags to all class definition etc, and all seems well.

I then updated references for each to my current project,
and tried to repeat the same. In my current project the
test:
ReferencedClassName.GetType.IsSerializable returns True
however the binary formatter keeps falling over.

Is there anything specific I have to do when adding
references to classes to allow the Binaary Formatter to
work properly.

Any pointers would be greatly appreciated.

Andrew
 
A

andrew

Silly Me still had a button object as a variable in one of
the referenced classes I was trying to persist. Of course
it was also the very same one that I was using to test my
code with.

No need for further replies.

Ta muchly

Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top