Serialization is a process of converting an object into a stream of data. So it easily transfers over the network or can save to disk. So, using this concept of serialization, we can serialize any object to XML string.
Here is a person class that we can serialize.

Here is the code that takes the person object into string of xml format.
Using Serialization in .NET is provided by the System.Runtim.Serialization name space.
Once you have the XML string, now you can save it to disk, store it into database, or transfer over the network.
Here is the deserialization method that takes serialized string of XML into the person object.
Kyoungsu Do
Software Quality Engineer
ImageSource, Inc.

