public static void Serialize(AddressDetails details)
{
XmlSerializer serializer =
new XmlSerializer(typeof(AddressDetails));
using (TextWriter writer = new StreamWriter(@"D:\Om\myXml.xml"))
{
serializer.Serialize(writer, details);}
the words which are coloured I got error