What I need to do is select list of nested elements, here is my query which returns
IEnumerable<IEnumerable<object>>
here is my linq expression:
from a in (questions.Select(x => x.AnswerList).ToList())
select a.Select(x => x.AnswerBasicViewModel);
How should I do that to make it return
only IEnumerable<object>
instead of IEnumerable<IEnumerable<object>>
?
Just to be clear in my sample I would like to get IEnumerable<AnswerBasicViewModel>
.