Beispiel #1
0
        public bool Write(LoggerConfig config)
        {
            var writer = new StreamWriter(AssemblyDirectory + "\\LoggerConfig.xml", false);

            var em = new XmlSerializer(config.GetType());

            em.Serialize(writer, config);
            writer.Close();

            return(true);
        }