Making the outer class serializable implies that all its instance variables
will be serialized (unless you mark some of them as <NotSerializabl e()>.
However this does not mean that all variables will be _able_ to serialize.
In fact if some of them are not serializable by themself (their types are
not serializable), then not only those fields will not serialize, but the
whole class will not be able to serialize.
Vladimir [VB.NET team]
--------------------
| Newsgroups: microsoft.publi c.dotnet.langua ges.vb
| Subject: Serialization of Objects
| From: Lucas Tam <RE********@rog ers.com>
| Organization: None of Your Business!!!
| Message-ID: <Xn************ *************** @140.99.99.130>
| User-Agent: Xnews/06.02.16
| X-Face:
#gFwhH/LPM9"eq<Dzb3~[P'7%dS98vHkcFbX ;SjezglosS.OP?: tzhHT7o=G03o0%S t#;xTbMCCP
'rF/EnVDK-y*a(Qh3J)+Fn]"/&@D(dOG=ITH!\af BA$O}D";gSvoEpf d
| Reply-To:
RE********@roge rs.com
| Lines: 18
| X-Complaints-To:
ab***@easynews. com
| X-Complaints-Info: Please be sure to forward a copy of ALL headers
otherwise we will be unable to process your complaint properly.
| Date: Mon, 22 Sep 2003 22:03:49 GMT
| Path:
cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!new sfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.f reenet.de!newsf eed.news2me.com !newsfeed2.easy news.com!easyne w
s.com!easynews! easynews-local!news.easy news.com.POSTED !not-for-mail
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.vb:140417
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.vb
|
| If I have an object that has the following structure:
|
| SerializableObj ect
| Several Private Variable
| One Private CustomCollectio nObject
|
| Do I also need to make the CustomCollectio nObject serializable as well,
or
| would making SerializableObj ect serializable be fine?
|
| Basically does serializing SerializableObj ect imply that
| CustomCollectio nObject is serialized as well?
|
| Thanks.
|
| --
| Lucas Tam (RE********@rog ers.com)
| Please delete "REMOVE" from the e-mail address when replying.
|
http://members.ebay.com/aboutme/coolspot18/
|