15.8. Serialization

Serialization is the process by which an object's state is persisted to an underlying medium (such as a network or a disk file), typically in binary format. After the object's state is serialized, the object can be reread from the disk file or the network through deserialization.

The .NET environment comes with formatters that take care of serializing and deserializing objects to the medium. Currently there are two formatters: the binary formatter and the SOAP formatter. The binary formatter serializes the object to a binary format. This is a good solution for transferring objects to disk or across the network between two applications that understand the binary format. The SOAP formatter puts the object into a SOAP envelope. ...

Get .NET for Java Developers: Migrating to C# now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.