a guest Jun 14th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- public static void ToFile(MobilePhone obj)
- FileStream fs = new FileStream("C://Users//Bohdan//Desktop//Новая папка (2)//data.xml", FileMode.OpenOrCreate);
- XmlSerializer xser = new XmlSerializer(typeof(MobilePhone));
- xser.Serialize(fs, obj);
- Console.WriteLine("Serialization to File done");
RAW Paste Data