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