Why would you want to use serialization? The two most important reasons are to persist the state of an object to a storage medium so an exact copy can be re-created at a later stage, and to send the object by value from one application domain to another. For example, serialization is used to save session state in ASP.NET and to copy objects to the Clipboard in Windows Forms. It is also used by remoting to pass objects by value from one application domain to another.
In This Section
- Persistent Storage
- Describes the need for serializing an object.
- Marshal by Value
- Describes the marshal-by-value process.
Copyright © 2007 by Microsoft Corporation. All rights reserved.