Serialization

C

Chakravarthy

I wanted to store the object of a .NET C# class in the image column of SQL
Server, so i added the [Serializable] attribute to the class. At run time,
it kept throwing exceptions referring to some related class not being
serialized. This kept on and on.

If a class has to be serialized, is there any rule on which relations also
need to be serialized ?
 
K

Kevin Spencer

Any class that is part of a class that is serialized must be serializable.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 

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