C# WINFORM中读取config文件

System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader();
ServerIP = configurationAppSettings.GetValue("ServerIP",typeof(string)).ToString();
ServerName = configurationAppSettings.GetValue("ServerName",typeof(string)).ToString();
posted @ 2007-02-09 13:10  RobotTech  阅读(1774)  评论(0编辑  收藏  举报