日期:2014-05-17 浏览次数:20756 次
listA=listA.Join(listB,a=>a.lp,b=>b.lp,(a,b)=>new YourClassName{lp=a.lp,Time=b.Time}).ToList();
listA= (from a in listA join b in listB on a.lp equals b.lp into leftGroup from b in leftGroup.DefaultIfEmpty() select new YourClassName{lp=a.lp,Time=b==null?a.Time:b.Time}).ToList();