Create a variable named ourBirds and assign to it a LINQ query that is the result of a join from myBirds onto yourBirds using the Name property as the key. Make sure to return the birds that are the same between the two lists. code example

Example: Create a variable named ourBirds and assign to it a LINQ query that is the result of a join from myBirds onto yourBirds using the Name property as the key. Make sure to return the birds that are the same between the two lists.

var ourBirds = myBirds.Join(yourBirds, b=> b.Name , n=> n.Name,  (bird, name) => bird);

Tags:

Misc Example