Example #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);
            }
        }
Example #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);
     }
 }