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.
It sounds like you are trying to find all instances of
ObjectBwhich have acodevalue present in any of theList<ObjectA>values. If so try the following