score:12

Accepted answer

Use SelectMany to flatten nested lists

asparaguses.AddRange(field.GetBeds().SelectMany(bed => bed.GetAsparaguses()));

score:6

Try SelectMany in order to flatten the collection of collection:

 asparaguses.AddRange(field
    .GetBeds()
    .SelectMany(bed => bed.GetAsparaguses()));

Related Articles