Use LINQ, like so:
List<Om> thinYin = yinList.Result.Where(i => !yangList.Any(a => a.OmId == i.OmId)).ToList(); List<Om> yinYang = yangList.Concat(thinYin).OrderBy(y => y.OmId).ToList();
No comments:
Post a Comment