コード例 #1
0
        private static JinxBotConfiguration LoadVersion10Configuration(TextReader reader)
        {
            XmlSerializer xs = new XmlSerializer(typeof(JinxBotConfiguration));

            try
            {
                JinxBotConfiguration config = xs.Deserialize(reader) as JinxBotConfiguration;
                return(config);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
                return(new JinxBotConfiguration());
            }
        }
コード例 #2
0
 private static string GetAppDataPath()
 {
     return(JinxBotConfiguration.GetAppDataPath());
 }