Exploring the Serialization Options in WCF

Serialization is nothing but the process of converting the state of an object into a format that can be either persisted to disk or transmitted over the wire. On the flip side, deserialization is the process of converting an incoming stream, which is either read from disk or read over the wire to an object in memory. Collectively, this allows data to be stored and transmitted with relative ease.

This is all good, but why serialize in the first place? Serialization is a key aspect of any distributed technology, and .NET is no different. For example, in an ASP.NET application, you can use serialization to save the session state to the configured medium (that is, memory, state server, or database). One ...

Get Pro WCF: Practical Microsoft SOA Implementation 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.