How Apply Binary Formatter to Referenced Classes

  • Thread starter Thread starter andrew
  • Start date Start date
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
 
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
 
Back
Top