Home All Groups Group Topic Archive Search About
Author
10 May 2007 6:35 PM
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 ?

Author
10 May 2007 6:49 PM
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

Show quote
"Chakravarthy" <r_chakravar***@hotmail.com> wrote in message
news:%23tUrNIzkHHA.3512@TK2MSFTNGP06.phx.gbl...
>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 ?
>
>

AddThis Social Bookmark Button