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();
ServerIP = configurationAppSettings.GetValue("ServerIP",typeof(string)).ToString();
ServerName = configurationAppSettings.GetValue("ServerName",typeof(string)).ToString();