public bool SaveConfig(LocalHost localHost) { using (var textWriter = new StreamWriter(path)) { var serializer = new XmlSerializer(typeof(LocalHost)); serializer.Serialize(textWriter, localHost); } return(true); }
public bool SaveConfig(LocalHost localHost) { using (var textWriter = new StreamWriter(path)) { var serializer = new XmlSerializer(typeof(LocalHost)); serializer.Serialize(textWriter,localHost); } return true; }