예제 #1
0
        private static void ReadConfigFromXDocument(XDocument xdoc, ref object config)
        {
            var configCore = new ConfigCore();

            configCore.ReadConfigFromXDocument(xdoc, ref config);
        }
예제 #2
0
        /// <summary>
        /// 写配置到XDocument
        /// </summary>
        /// <param name="config">配置对象</param>
        /// <returns>配置XDocument</returns>
        public static XDocument WriteConfigToXDocument(object config)
        {
            var configCore = new ConfigCore();

            return(configCore.WriteConfigToXDocument(config));
        }
예제 #3
0
        /// <summary>
        /// 从xml配置中读取配置到指定的配置对象中
        /// </summary>
        /// <param name="xdoc">xml配置</param>
        /// <param name="config">指定的配置对象</param>
        public static void ReadConfigFromXml(XDocument xdoc, object config)
        {
            var configCore = new ConfigCore();

            ReadConfigFromXDocument(xdoc, ref config);
        }