Is there a way to linearize a IEumerable<IEumerable<a>> in Linq (or an elegant solution).
I have a method who returns a IEnumerable<b>. I use the Select method on a method of b that produces an IEnumerable<a>, this results in a IEnumerable<IEnumerable<a>>. Is there a way to concatenate these enumerable to a IEnumerable<a>-object?
You’re looking for
a.SelectMany(x => x)(or, in-context,
b.SelectMany(b => b.Something()))