111,092
社区成员




public class A
{
public string Id{get;set;}
public string Name{get;set;}
public string Num{get;set;}
}
List<A> list1= new List<A>();
List<A> list2 = new List<A>();
var result = from x in list1
join y in list2
on x.Id equals y.Id
into temp
from z in temp.DefaultIfEmpty()
select new A { Id = x.Id, Name = x.Name, Num = (z == null) ? x.Num : z.Num };