Object Serialization

When talking about I/O in general, its important to think of object serialization. Before we see how objects can be serialized, it's necessary to understand the fundamental concepts of this topic. Assume that a complex object provides a rich set of attributes. When writing the object to disk, it's necessary to find a suitable format in which to store the data efficiently. More than that, it can be necessary to have easy-to-use interfaces that make it possible to quickly implement software. Luckily, C# and the Mono framework provide such interfaces.

Mono's onboard tools for object serialization take an instance and transform it to a string. This string be can saved to disk. Of course, reading data from disk and making an instance ...

Get Mono Kick Start 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.