コード例 #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;
 }