// 获取到的数据 DataTable picDt = GetPdmPoroductModelPictureData(productModelCode); // 将productCode列转数组 string[] arrPic = picDt.AsEnumerable().Select(d => d.Field<string>("productCode")).ToArray(); // 将productCode列转List集合 List<string> litRate = picDt.AsEnumerable().Select(d => d.Field<string>("productCode")).ToList();
标签:productCode,picDt,C#,List,Field,数组,DataTable,某列 From: https://www.cnblogs.com/ViolinHuang/p/16859912.html