O'Reilly logo

Delphi for .NET Developer’s Guide by Xavier Pacheco

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

Up to this point, this chapter has covered how to work with files and streams. There is obviously great utility in being able to write data to various media such as disk and memory. There is greater utility in being able to write your .NET types, including their state to the same media. This is possible by using serialization. Serialization is a process that converts classes to a stream of bytes that can be persisted or transferred to another process and even another computer. Deserialization is the reverse process of reading the stream of bytes from a file or from a remote computer and reconstructing the class it contains, including its state.

Consider the possibilities. You can create your own custom class, create an instance, ...

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