public static ListGetList() { try { var result = new List (); using (ServiceManager sm = new ServiceManager ()) { result = sm.Service.GetExtendListByWhere(string.Empty); //处理中国优先在第一位 if (result.ExistsData() && result.Count>1) { var index = result.FindIndex(x=>x.CountryNameL=="中國"); if (index>0) { var firstCountry = result[0]; var china = result[index]; result[index] = firstCountry; result[0] = china; } } } return result; } catch (Exception ex) { throw ex; } }