public void 填充List() { //file.PATH = AppDomain.CurrentDomain.BaseDirectory + "\\数据配置文件\\AnyWayIP源.csv"; //file.加载文件(); //string value = string.Empty; //string[] _value = null; //while ((value = file.读数据()) != null) //{ // IP地址 ip = new IP地址(); // _value = value.Split(','); // ip.IP = _value[0]; // list.Add(ip); //} string ip = System.Configuration.ConfigurationSettings.AppSettings["AnyWayIp"].ToString(); IP地址 ips = new IP地址(); ips.IP = ip; list.Add(ips); }