Esempio n. 1
0
        public static void WriteToXml(Type type, XDocument doc)
        {
            if (!Directory.Exists(Constants.OutDirectory))
            {
                Directory.CreateDirectory(Constants.OutDirectory);
            }

            var fileName = NameConverter.ConvertClassNameToSnakeCase(type, ".xml");

            doc.Save(Constants.OutDirectory + fileName);
        }