Matlus
Internet Technology & Software Engineering

Tagged With: SelectMany

Linq - SelectMany

The linq SelectMany method is probably one of the most powerful method on the Enumerable class but sadly also of of the most difficult to understand. As per the the MSDN documentation for Enumerable.SelectMany, this method is described as:
Projects each element of a sequence to an IEnumerable<T> and flattens the resulting sequences into one sequence
[...]