daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public static void ToFile(MobilePhone obj)
  2.     {
  3.        
  4.         FileStream fs = new FileStream("C://Users//Bohdan//Desktop//Новая папка (2)//data.xml", FileMode.OpenOrCreate);
  5.         XmlSerializer xser = new XmlSerializer(typeof(MobilePhone));
  6.         xser.Serialize(fs, obj);
  7.         Console.WriteLine("Serialization to File done");
  8.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top