Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Please explain the parts of these 2 LINQ expressions

List<MiddleTier.APX.Infrastructure.SalesForceService.ExtensionApp> innerextaplist =
extaplist.Join(savelist, ap => ap.App_id, s => s.externalid, (ap, s) =>
{ if (s.success && !string.IsNullOrEmpty(s.id)) { ap.AccountId = s.id; return ap; } return null; }
).Where(ap => !(ap == null)).ToList();

List<CulturalCare.MiddleTier.APX.Infrastructure.SalesForceService.ExtensionApp> inneraplist =
savelist.Where(gl => !gl.success)
.Join(extaplist, outer => outer.externalid, inner => inner.Aupair_id, (outer, inner) => inner)
.ToList();

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

thanks
Not a problem newbieweb, glad to help. đź‘Ť