O'Reilly logo

Application Development Using Visual Basic® and .NET by Dana L. Wyatt, Peter Thorsteinson, Robert J. Oberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Serialization

Using the File and Stream classes can be quite cumbersome if you have to save a complicated data structure with linked objects. You have to save the individual fields to disk, remembering which field belongs to which object and which object instance was linked to another object instance. When restoring the data structure, you have to reconstitute that arrangement of fields and object references.

The serialization technology provided by the .NET Framework does this for you. Serialization converts data structures to a byte stream. Deserialization converts the byte stream back to the data structures. Serializing and deserializing can be done on different machines so long as they both host the CLR.

Objects can be serialized without ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required