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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access