I'm trying to filter my first list of Foo's based on some values in a second list of Baa's.
For example.
Here's an example I put up 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" }
};
// Expected output:
// List<Foo> results = Foo { "Leia" } and Foo { "Luke" };
See how I'm asking for: Filter the first list (by Name
) by the second lists Alias
property.
and that will return a List of Foo
with 2 results in it?
Any clues?