O'Reilly logo

C# for Java Developers by Adam Freeman, Allen Jones

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

Object Serialization

Object serialization is the process of rendering an object into a state that can be stored persistently. The Java platform has included serialization support since version 1.1, and while there have been additional enhancements, the model has proved sufficiently flexible to meet the needs of most developers.

In .NET, the way in which serialized data is stored is controlled by formatters, which are classes that implement the System.Runtime.Serialization.IFormatter interface. Two implementations are available in the .NET Framework:

  • System.Runtime.Serialization.Formatters.Binary.BinaryFormatter

  • System.Runtime.Serialization.Formatters.Soap.SoapFormatter

The BinaryFormatter produces a compact and efficient binary representation of the ...

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