List<dynamic>转换List<xxxx>

List<dynamic> dlist= getPageDate(c => new { c }, c => c.TecId == TecId, c => c.CommentId, int.Parse(parameters["pageIndex"].ToString()), 2, out Total_);
 
Comment entiy;//转换的对象
 
list<Comment>  list = dlist.ConvertAll(input => entiy = input.c);
posted @ 2015-06-01 11:40  飞刀软件  阅读(3052)  评论(1)    收藏  举报