private Serialize ( |
||
UserEditable | ||
return |
internal static bool WriteFile(string file, UserEditable config) { bool ok = false; ConfigSerializer serializer = new ConfigSerializer(); try { string xml = serializer.Serialize(config).OuterXml; using (StreamWriter writer = new StreamWriter(file, false)) { writer.Write(xml.Trim()); writer.Flush(); writer.Close(); } ok = true; } catch { } return ok; }
internal static bool WriteFile(string file, UserEditable config) { bool ok = false; ConfigSerializer serializer = new ConfigSerializer(); try { string xml = serializer.Serialize(config).OuterXml; using (StreamWriter writer = new StreamWriter(file, false)) { writer.Write(xml.Trim()); writer.Flush(); writer.Close(); } ok = true; } catch { } return(ok); }