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 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.