/// <summary> /// 保存配置类实例 /// </summary> /// <returns></returns> public static bool SaveConfig(APIConfigInfo apiconfiginfo) { APIConfigFileManager acfm = new APIConfigFileManager(); APIConfigFileManager.ConfigInfo = apiconfiginfo; return(acfm.SaveConfig()); }
/// <summary> /// 获取配置类实例 /// </summary> /// <returns></returns> public static APIConfigInfo GetConfig() { return(APIConfigFileManager.LoadConfig()); }