摘要: c# linq用起来特方便,因此我们习惯性的用list来操作。 这里我们将 DataTable 一列转为List: List<T> homeworkIdList = (from r in dataTable.AsEnumerable() select r.Field<T>("列名")).ToList 阅读全文
posted @ 2020-12-03 09:14 温暖如太阳 阅读(1027) 评论(0) 推荐(0) 编辑