470,641 Members | 1,642 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

How Apply Binary Formatter to Referenced Classes

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
Nov 20 '05 #1
1 911
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
-----Original Message-----
I was earlier trying to persist a windows forms control todisk 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 serializeproperly.

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
.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.