Summary

This chapter provided insight into how to use the serialization and deserialization features of the .NET Framework to construct representations of objects that can be transported in a portable manner. The BinaryFormatter is useful for creating compact replicas of objects, including all private members, and the Xml­Serializer is valuable for generating XML representations of objects. You saw the different components that comprise the binary serialization architecture, and you should now understand how to effect your own customized binary serialization by implementing the ISerializable interface.

The XML serialization mechanisms are convenient and quick and can also be tailored by applying the various XML attribute classes.

Get Microsoft® Visual J#™ .NET (Core Reference) 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.