Serializing and deserializing objects into files

In this recipe, we will learn about serialization. Serialization is the process of transforming data structures or—in our case—objects into files that can be read later by the same, or another, computer (phone) in order to create an exact replica of the object that was serialized. The possibilities are endless with serialization because you can use it for storage and communication purposes. End-users can actually send (serialized) objects to each other. You might have found the previous recipe trivial, and you are right, it is trivial. However, we can use the file to store serialized objects, which can be used for almost every purpose. Serialization will happen in two separate classes. Indeed, we ...

Get Xamarin Studio for Android Programming: A C# Cookbook now with O’Reilly online learning.

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