体检系统架构
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
621 B

using System.Configuration;
namespace DicomTool.Utils
{
internal class Global
{
/// <summary>
/// 返回*.exe.cdddonfig文件中appSettings配置节的value项
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static string GetAppConfig(string key)
{
foreach (string str in ConfigurationManager.AppSettings)
{
if (str == key)
{
return ConfigurationManager.AppSettings[key];
}
}
return null;
}
}
}