📅  最后修改于: 2022-03-11 14:48:47.586000             🧑  作者: Mango
But if you do want to use a data table first, you could use LINQ:
var list = dt.AsEnumerable().Select(r => new Person() {
Name = (string) r["Name"],
Age = (int) r["Age"] }
).ToList()