Serialization in .NET


Today, I am going to write something about Serialization in .NET. Yesterday we had a small Mentoring Session. . We have Mentoring Session every other week, in which there is exchange of Knowledge between a Senior and a Junior Employee.. and the other way around as well. By mentoring each other, we learn a lot from each other’s experience, which in turn helps foster growth in ones career as well.
So that been said let me share what I learned from it yesterday.,one for  Manager spoke about “Serialization” in .NET. So what is Serialization?
Serialization is a method in which an object or data is broken down in bits and pieces stored /transferred across the network. Well the exact opposite of it is called De-Serialization, wherein the same object is built in the form it was sent before. This serialized format contains the object's state information
In .NET however there are three types’ ways an object can be serialized
1. XML
2. Binary
3. SOAP
SOAP and binary serialization are essential if you are planning to transport objects across a network. The SOAP formatter is ideal for sending the object via HTTP, while the binary is more ideal because of its more lightweight and compact nature. The XML serializer cannot prepare an object for transportation by itself. It also ignores private member fields and properties.
Well that is what I know so far about Serialization. Stay tuned to find more .

No comments:

Post a Comment