예제 #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;
 }