Advanced: Serializing & Deserializing Objects

This solution demonstrates how to serialize and deserialize an object to/from a stream.

Featured Highlights

This application allows the user to serialize two classes, one with standard serialization, and one with custom serialization. The six grouped command buttons are for serializing and deserializing. The bottom two buttons allow the user to view the SOAP envelopes for the serialized objects. The text boxes on the right allow the user to specify the initial data for the instances. The read-only textboxes on the far right allow the user to see the new field values after deserialization.

Requirements

Requires the Trial or Release version of Visual Studio .NET Professional (or greater).

Running the Sample

This project has an additional reference to the System.Runtime.Serialization.Formatters.Soap.dll assembly. This is a required reference in order to use the SOAP formatter.  

Last Update: 7 July 2002