IEnumerable<T> 转换为数组 IEnumerable<User> userlist=xxxx; string[] ids=userlist.select(u=>u.id).toArray();