The opposite of serialization binary option time value deserialization which is a process that converts the outcome of serialization into the original object. NET Framework offers two serialization technologies, binary and XML. Binary Serialization Binary serialization preserves type system fidelity.
Type system fidelity denotes that type information is not lost in the serialization process. During the serialization process, public and private fields of the object and the name of the class and the containing assembly are converted to a stream of bytes written to a data stream. During deserialization, an exact replica of the object along with type information is reconstructed. XML Serialization This is covered in the XML Serialization chapter. Serialization Concepts Why would you want to use serialization. The ability to convert objects to and from a byte stream can be incredibly useful.
NET saves and restores session state using serialization and de-serialization. A set of object can be easily copied into the clipboard and then pasted into some other application. An object can be cloned using serialization and set aside while the user manipulates the original object. Once object have been serialized, it is quite easy to perform many other functions such as compression, encryption, and so on.
Serialization provides a convenient design pattern for achieving this objective with minimal effort. The CLR manages how objects are laid out in memory and provides an automated serialization mechanism using reflection. When an object is serialized, the name of the class, its containing assembly and all fields are written to storage. When an object is serialized, the CLR also keeps track of all referenced objects already serialized to ensure that the same object is not serialized more than once. The serialization architecture provided with the . Marshal By Value Objects are only valid in the application domain where they were created. The object is marked with .