No. Serialization is used whenever you want to preserve the state of an
object and/or transmit it across some type of boundary.
Writing the information to a file is one way to preserve the information and
you can definitely serialize for this reason. You might also want to
serialize and object before sending it across the internet such as a
webservice. Or you have out-of-process COM component (ServicedComponents)
which require that all passed information be serialized. Or, you can send
the data to a remote machine to be reconstructed and executed.
A recently project that I developed was a component that serialized an
object and encrypted it which was then saved to the registry.
Serialization is also useful to clone objects (implement the IClonable
interface). To support Cut & Paste and Drag & Drop. Also you can use
Serialization to store objects to a relational database as well.
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.