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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.