看到别人数据库信息都是在app.config里面设置的,今天来尝试了一下,报了 "System.Configuration.ConfigurationSettings.AppSettings"已过期:"this method has obsolete,it has been repalced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings" 的警告,上网查了一…
转自:http://blog.csdn.net/taoyinzhou/article/details/1906996 app.config 修改后,如果使用cofnigurationManager立即读取,不能获取修改后的值,只能获取缓存中的原值.使用下面直接操场xml文件的方式可以动态读写配置文件. using System; using System.Collections.Generic; using System.Text; using System.IO; using System.X…