是否可以用 lambdas 而不是 foreachs 来表达以下代码块?
IEnumerable<BODSurveys.SurveysAnwer> resp = new List<SurveysAnwer>();
foreach (var section in Sections)
{
foreach (var question in section.Questions)
{
foreach (var answer in question.SurveysAnwers)
{
yield return answer;
}
}
}