I have two objects:
ObjectA
{
string code;
string country;
}
ObjectB
{
string code;
string otherstuff;
}
And I have List<objectA> and List<ObjectB> and I need to find all objects in List<ObjectB> which contains objectA.Code.
But cannot manage to implement it on LINQ query.
objectAor you need it for all objects fromList<objectA>. 2. What is the layout of result you expect? 3. What have you tried so far?EqualsandGetHashCodein both and allow to compare with each other viaCode.