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