Disclaimer: I know its asked at so many places at SO. My query is a little different.
Coding Language: C# 3.5
I have a DataTable named cardsTable that
Just a little simplification. I don't use ItemArray:
List list = tbl.AsEnumerable().Select(x => new Person { Id = (Int32) (x["Id"]), Name = (string) (x["Name"] ?? ""), LastName = (string) (x["LastName"] ?? "") }).ToList();