Last post Sep 16, 2015 04:02 AM by Klein Zhang
Sep 15, 2015 09:01 AM|K.Ajay Singh|LINK
Can some one please explain me What is serialization and deserialization in simple words . Example will help better
Sep 15, 2015 09:13 AM|Mukesh_Kumar|LINK
In simple word...
Serialization is the process of taking an object and converting it to a format in which it can be transported across a network or persisted to a storage location. The storage location could be as simple as using a file or a database.
The serialized format contains the object's state information.
Deserialization is the process of using the serialized state information to reconstruct the object from the serialized state to its original state. In essence, the process of serialization allows an object to be serialized, shipped
across the network for remoting or persisted in a storage location such as the ASP.NET cache, and then be reconstructed for use at a later point in time.
for more info refer this link.
Hope this will help you.
Sep 15, 2015 09:20 AM|PatriceSc|LINK
See for example
https://msdn.microsoft.com/en-us/library/ms233843.aspx: "Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory, a database, or a file. Its main purpose is to save the state of an
object in order to be able to recreate it when needed. The reverse process is called deserialization."
get it as a C# object. So the client side object is "serialized" client side and its data transmitted inside the http request (possibly using JSON) and on the server side, the http request is processed to recreate a C# object. The whole plumbing is done for
you and it feels like you just sent an object over the wire...
Sep 16, 2015 04:02 AM|Klein Zhang|LINK
Hi K.Ajay Singh
Serialization is the process of going from in memory representation of an object to a disk based format which can be in any form like binary, JSON, BSON, XML, etc.
Deserialization is the reverse process, in which you get an object from the disk based format.
If you want to get more information, you could refer to the following links.
I hope it's helpful to you.