There are many a situations you would have come across when you want to XML
serialize an object but since the type is a non - serializable you can't do it,
and you could have done a lot of code for getting the functionality done. There
is a much simpler and easy way to get this achieved.