var query = dt
.AsEnumerable()
.Where(x => x.Field<string>("phoneNumber") != string.Empty)
.Select(x => new Contact
{
FirstName = x.Field<string>("First Name"),
LastName = x.Field<string>("Last Name"),
PhoneNumber = x.Field<string>("Phone Number"),
});
原文:https://www.cnblogs.com/dandan00056/p/12780767.html