Beispiel #1
0
        internal DllTable(string configName)
        {
            //得到配置文件路径
            ExeConfigurationFileMap configFile = new ExeConfigurationFileMap();

            configFile.ExeConfigFilename = ALConfig.GetAbsolutePath(configName);
            //得到配置文件
            config = ConfigurationManager.OpenMappedExeConfiguration(configFile, ConfigurationUserLevel.None);
        }
Beispiel #2
0
        /// <summary>
        /// 检查DllConfig是否存在
        /// </summary>
        /// <param name="dllConfigName"></param>
        /// <returns></returns>
        public bool IsExists(string dllConfigName)
        {
            string path = ALConfig.GetAbsolutePath(dllConfigName);

            return(File.Exists(path));
        }