When a .NET application interacts with an external network, the data being exchanged must be transformed into a flat or binary format. Similarly, when the data is retrieved from external applications, binary data needs to be formatted to objects on which they can then be worked upon. This is done via the serialization and deserialization of data using different approaches. The process of changing objects into binary format is referred to as serialization. Deserialization is the reverse of serialization. In involves transforming binary data into its object representation so that it can be used in the application.
In this chapter, we will work on different serialization and deserialization approaches available in the .NET Framework. We will look into XML serialization, JSON serialization, and binary serialization. We will also look...