private static void Test3() { var person = new Person() { Address = new Address() { StreetName = "Mane Vasti", City = "Pune" }, Name = "Kuldeep Singh" }; var newPerson = person.DeepCopyWithBinary(); newPerson.Address.StreetName = "Khese Park"; var newerPerson = person.DeepCopyWithXmlSerializer(); newerPerson.Name = "Ravnit"; newerPerson.Address.StreetName = "Khese Park"; Console.WriteLine(person); Console.WriteLine(newPerson); Console.WriteLine(newerPerson); }