可能重复:
如何将匿名类型传递给方法?
我想将 LINQ 结果的集合传递给另一个方法
这是 LinQ 代码
var sets =
from a in patient
from b in patient
from c in patient
from d in patient
from l in patient
where a.VisitNum < b.VisitNum && b.VisitNum < c.VisitNum && c.VisitNum < d.VisitNum && d.VisitNum < l.VisitNum
select new { a, b, c, d, l };
查询呈现这样的结果“组合”
ID Visit DAte Visit number Rational
-------------------------------------------------
a- 1 14/05/2011 1 new
b- 1 15/06/2012 2 Emergency
c- 1 17/07/2012 3 Check-Up
a- 1 14/05/2011 1 new
b- 1 15/06/2012 2 Emergency
c- 1 18/12/2012 5 Check-Up