您好我有以下代码,并希望只有每个联合,如果条件为真。 我知道我可以写一个选择,但是想知道是否有一个闪烁的Linq方式!?c#linq条件联盟
//join the list into one and sort by seqnumber
SegmentList = Alist.Cast<BaseSegment>()
.Union(BList.Cast<BaseSegment>()).Union(CList.Cast<BaseSegment>())
.OrderBy(item => item.SegSeqNumber).ToList();
因此,考虑上述,如果ATEST =真我怎么只iclude ALIST像明智的,如果BTEST & & CTEST是真实的我怎么只包括BList和CLIST
感谢
你在说什么测试?你的代码什么都没显示 – leppie 2010-10-11 10:53:11
非常不清楚。 – Kobi 2010-10-11 10:54:21
是一些更具体的 – 2010-10-11 10:57:42