public static void SerializeToXML(Settings settings) { XmlSerializer serializer = new XmlSerializer(typeof(Settings)); TextWriter textWriter = new StreamWriter(SettingsFilePath); serializer.Serialize(textWriter, settings); textWriter.Close(); }
public static void SerializeToXML(Settings settings) { XmlSerializer serializer = new XmlSerializer(typeof(Settings)); TextWriter textWriter = new StreamWriter(SettingsFilePath); serializer.Serialize(textWriter, settings); textWriter.Close(); }