private static void ReadConfigFromXDocument(XDocument xdoc, ref object config) { var configCore = new ConfigCore(); configCore.ReadConfigFromXDocument(xdoc, ref config); }
/// <summary> /// 写配置到XDocument /// </summary> /// <param name="config">配置对象</param> /// <returns>配置XDocument</returns> public static XDocument WriteConfigToXDocument(object config) { var configCore = new ConfigCore(); return(configCore.WriteConfigToXDocument(config)); }
/// <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); }