IEnumerable<User> userlist=xxxx; string[] ids=userlist.select(u=>u.id).toArray(); 转载于:https://www.cnblogs.com/qidian10/p/3171456.html