DataTable ThisDT_Time = useAS.GetDataTableSQL("select DateTime from CurveData1");//获取表内容 object[] DTTA = ThisDT_Time.AsEnumerable().Select(v => v.Field<object>("DataTime")).ToArray();//DataTime为转化列的名称 List<object> DTTL = ThisDT_Time.AsEnumerable().Select(v => v.Field<object>("DataTime")).ToListy();
标签:DataTime,C#,List,Field,ThisDT,Time,DataTable From: https://www.cnblogs.com/Kirito-Asuna-Yoyi/p/Data_Arr_List.html