示例#1
0
 private void SaveConfigToFile(string filename, XmlScaffoldingConfig config)
 {
     _solutionManager.EnsureCheckedOutIfExists(filename);
     using (var writer = new XmlTextWriter(filename, new UTF8Encoding(true))
     {
         Formatting = Formatting.Indented
     }) {
         var serializer = new XmlSerializer(typeof(XmlScaffoldingConfig));
         serializer.Serialize(writer, config);
     }
 }