Chapter 21. Introducing Object Serialization

In Chapter 20, you learned about the functionality provided by the System.IO namespace and the role of isolated storage (using the types of System.IO.IsolatedStorage). As shown, these namespaces provide numerous readers and writers that can be used to persist data to a given location (in a given format). This chapter examines the related topic of object serialization. Using object serialization, you are able to persist and retrieve the state of an object to (or from) any System.IO.Stream-derived type (including the IsolatedStorageFileStream type).

The ability to serialize types is critical when attempting to copy an object to a remote machine via various remoting technologies such as the .NET remoting ...

Get Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition now with O’Reilly online learning.

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