C# DataTable 转List<string>

                List<string> blackIpList = (from d in ds.Tables[0].AsEnumerable() select d.Field<string>("blackip") ).ToList();

  

posted @ 2022-04-08 10:10  极客船长  阅读(431)  评论(0编辑  收藏  举报