I am trying to filter my first Foo list based on some values in the second Baa list.
For instance.
Here is an example that I installed on .NET Fiddle ...
var foos = new List<Foo>
{
new Foo { Name = "Leia" },
new Foo { Name = "Han Solo" },
new Foo { Name = "Chewbacca" },
new Foo { Name = "Luke" },
};
var baas = new List<Baa>
{
new Baa { Alias = "aaaaa" },
new Baa { Alias = "bbbb" },
new Baa { Alias = "Leia" },
new Baa { Alias = "Luke" }
};
See how I ask: filter the first list (through Name) using the second list of properties Alias.
and it will return a list Foowith two results in it?
Any clues?
source
share