open_in_new
content_copy
var ids = dt.AsEnumerable().Select(r => r.Field<int>("id")).ToList();