I have the following code which basically does what I want:
string firstName = "Chuck";
string lastName = "Norris";
filtered = dvds.Where(
dvd => (dvd.Element("Actors") != null) && (dvd.Element("Actors").Elements("Actor").Where(
actor => actor.Attribute("FirstName") != null && actor.Attribute("FirstName").Value == firstName
&& actor.Attribute("LastName") != null && actor.Attribute("LastName").Value == lastName)).Count() > 0);
As you can see, the lambda is quite big. I'd rather have a callback method in the first .Where call. But I don't see how I could give the firstName and lastName parameters into that callback method.
Is that even possible?