Exemple #1
0
        void SaveOurData(OurData od)
        {
            XmlSerializer s = new XmlSerializer(typeof(OurData));

            using (var ss = new FileStream("data.xml", FileMode.Create))
            {
                s.Serialize(ss, od);
            }
        }
Exemple #2
0
 void SaveOurData(OurData od)
 {
     XmlSerializer s = new XmlSerializer(typeof(OurData));
     using (var ss = new FileStream("data.xml", FileMode.Create))
     {
         s.Serialize(ss, od);
     }
 }