编程语言
首页 > 编程语言> > C# datatable转list

C# datatable转list

作者:互联网

	 List<DateTime> listDate = result.Select("加油时间 is not null", "加油时间 asc").ToList().ConvertAll<DateTime>(m=> Convert.ToDateTime(m["加油时间"].ToString()));
                        DateTime rowMin = listDate.OrderBy(o => o).FirstOrDefault();
                        DateTime rowMax = listDate.OrderByDescending(o => o).FirstOrDefault();
	

标签:FirstOrDefault,C#,list,listDate,DateTime,时间,result,加油,datatable
来源: https://blog.csdn.net/weixin_46942018/article/details/122626653