Serialization stores state of the object i.e. member variable values to disk
i have read the articles on this but not clear with the concept anybody can clear what they are.
If you want examples where serialization is used you can for example take a look at the Profile feature of ASP.Net 2.0. When you add a property to the Profile in web.config, and for example specify your own type, Binary serialization will be used to save all the state of the current object into the data source. This will make sure you get all the objects state when you deserialize the data back again.
If you want to craete a deep clone of an object (copy the whole object), serialization can be used.
hiFredrik N thanks for the reply
i work in framework 1.1
and what do you mean by this
' to save all the state of the current object into the data source'
state of the object means ?
State in this context is the current "data" the object has at the current moment.
I hope the following articles gives u a lot of help
http://aspalliance.com/983
0 comments:
Post a Comment