Summary
Serialization is the capability to save objects’ state to disk (or memory) and to re-create the states later. The .NET Framework offers several serialization techniques, all provided by the System.Runtime.Serialization namespace. You can perform binary serialization via the BinaryFormatter class or SOAP serialization (XML-based mode for SOAP web services) via the SoapFormatter class. In both cases you need an output stream and then invoke the Serialize method for performing serialization. Deserialize, on the other hand, is for performing deserialization. Another common technique is the XML serialization that creates XML documents starting from your objects, which is useful if you need to exchange your data with non-.NET applications ...
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