c#在代码中怎么读取配置文件的数据
配置文件appconfig中
<add key="shujuKey" value="shujuValue" />
在代码中使用
string shujuValue = ConfigurationManager.AppSettings["shujuKey"];
配置文件appconfig中
<add key="shujuKey" value="shujuValue" />
在代码中使用
string shujuValue = ConfigurationManager.AppSettings["shujuKey"];