Setting a property from one collection to another collection
- by ooo
I have two colluections
List<Application> myApps;
List<Application> yourApps;
These lists have overlapping overlapping data but they are coming from different sources and each source has some missing field data.
Application object has a property called Description
Both collections have a unique field called Key
i want to see if there is a LINQ solution to:
Loop through all applications in myApps and look at the key and see if that existing in yourApps. If it does, i want to take the description property from that application in yourApps and set the description property on the application on myApps to that same value
i wanted to see if there was any slick way using lambda expressions (instead of having to have loops and a number of if statements.)