What is serialization?

Posted by balajirnaukri-12656 under ASP.NET on 3/1/2012 | Points: 10 | Views : 9659 | Status : [Member] | Replies : 8
Can anyone help me the process of serialization? with an good example

Thanks and Regards
Balaji.R
ASP.NET Devloper
Solve-IT corp



Responses

Posted by: Kk86kiran on: 3/1/2012 [Member] Starter | Points: 25

Up
0
Down
serialization means converting the objects into steam of data or form to use over the net or persisted in storage location. This storage location may be physical file,database or asp.net cache.

k.m.j.kiran

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sheonarayan on: 3/1/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Balaji....

Please read http://www.dotnetfunda.com/articles/article98.aspx and http://www.dotnetfunda.com/articles/article622-demonstration-of-serialization-in-vbnet.aspx articles that should give you enough idea about Serialization.

Hope this helps.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Muhsinathk on: 6/12/2012 [Member] Bronze | Points: 25

Up
0
Down
http://en.wikipedia.org/wiki/Serialization

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 6/12/2012 [Member] Silver | Points: 25

Up
0
Down
see this http://www.dotnetfunda.com/forums/thread8738-what-is-serialization-in-csharp.aspx

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 6/12/2012 [Member] Silver | Points: 25

Up
0
Down
http://www.codeproject.com/Articles/1789/Object-Serialization-using-C

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: CGN007 on: 6/12/2012 [Member] Silver | Points: 25

Up
0
Down
http://msdn.microsoft.com/en-us/library/ms233843.aspx

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chikkanti on: 6/12/2012 [Member] Starter | Points: 25

Up
0
Down
Serialization is the process of converting an object into a stream of bytes. Deserialization is the opposite process of creating an object from a stream of bytes. Serialization / Deserialization is mostly used to transport objects (e.g. during remoting), or to persist objects (e.g. to a file or database).Serialization can be defined as the process of storing the state of an object to a storage medium. During this process, the public and private fields of the object and the name of the class, including the assembly containing the class, are converted to a stream of bytes, which is then written to a data stream. When the object is subsequently deserialized, an exact clone of the original object is created.
Binary serializat ion preserves type fidelity, which is useful for preserving the state of an object between different invocations of an application. For example, you can share an object between different applications by serializing it to the clipboard. You can serialize an object to a stream, disk, memory, over the network, and so forth. Remoting uses serialization to pass objects "by value" from one computer or application domain to another.
XML serializat ion serializes only public properties and fields and does not preserve type fidelity. This is useful when you want to provide or consume data without restricting the application that uses the data. Because XML is an open standard, it is an attractive choice for sharing data across the Web. SOAP is an open standard, which makes it an attractive choice.

chikkanti

balajirnaukri-12656, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response