You want
Cars.Where(x => x.Tires.Any(y => y.Size == 40));
or
Cars.Where(x => x.Tires.All(y => y.Size == 40));
Depending on the requirement.
Your version won't work because the outer lambda is actually returning an IEnumerable<Tire>
, whereas it needs to be a bool
.