Serializing Managed Objects to and from Disk

Object serialization refers to the mechanism in which an object is converted to a form in which it can be saved on disk or transferred across a network and then de-serialized back to its original object form. The basic process of serialization involves converting all the members of the class along with the required metadata into bytes, which are then dumped to disk or to a network socket. The bytes are in stream form and are not necessarily read in the correct order all the time. The framework handles the actual serialization and de-serialization processes for you behind the scenes; therefore, as a developer, you won't need to bother with those details.

An important aspect of .NET serialization is ...

Get Extending MFC Applications with the .NET Framework 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.