c#在代码中怎么读取配置文件的数据

配置文件appconfig中

<add key="shujuKey" value="shujuValue" />

在代码中使用

string shujuValue = ConfigurationManager.AppSettings["shujuKey"];

原文地址:https://www.cnblogs.com/sky-liu/p/13452863.html