IEnumerable<T> 转换为数组

IEnumerable<User> userlist=xxxx;

string[] ids=userlist.select(u=>u.id).toArray();

posted @ 2013-07-04 14:06  jackchain  阅读(1610)  评论(0编辑  收藏  举报