/// <summary> /// 读取配置文件 /// </summary> /// <param name="strNameSpace">返回 命名空间字符串</param> /// <param name="strInstance">返回 实例字符串</param> void ReadConfigFile(ref string strNameSpace, ref string strInstance) { string configPath = Methods.CommonMethods.GetConfigPath(); //读取配置文件的信息 Sections.ContractSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.ContractSection; if (section != null) { strNameSpace = section.NameSpace; //命名空间 strInstance = section.Instance; //实例 } }
/// <summary> /// 读取配置文件 /// </summary> /// <param name="strNameSpace">返回 命名空间字符串</param> /// <param name="strInstance">返回 实例字符串</param> void ReadConfigFile(ref string strNameSpace, ref string strInstance) { string configPath = Common.CommonMethods.GetConfigPath(); //读取配置文件的信息 Sections.ContractSection section = PublicMethods.Methods.ReadConfigFile_SectionGroup(configPath, GROUPNAME, SECTIONNAME) as Sections.ContractSection; if (section != null) { strNameSpace = section.NameSpace; //命名空间 strInstance = section.Instance; //实例 this._methodnm_GetDefaultContract = section.GetDataContractMethod; //GetDefaultContract方法名 this._methodnm_GetPageData = section.GetPageDataMethod; this._methodnm_IsExist_contractname = section.IsExist_contractnameMethod; //IsExist_contractname方法名 this._methodnm_GetDataByID = section.GetDataByIDMethod; //GetDataByID方法名 } }