public void SaveToXML(string path) { XmlSerializer xs = new XmlSerializer(typeof(Family[])); using (StreamWriter wr = new StreamWriter(path)) { xs.Serialize(wr, Families.ToArray <Family>()); } }
public void SaveToXML(string path) { XmlSerializer xs = new XmlSerializer(typeof(Family[])); using (StreamWriter wr = new StreamWriter(path)) { xs.Serialize(wr, Families.ToArray <Family>()); } }