METHOD
Enumerable.SelectMany
Flattens the selected nested sequences.
Formal Syntax & Structure
csharp syntaxcsharp
source.SelectMany(collectionSelector)Working Example
Example Snippetcsharp
using System;using System.Linq;var flat = new[] {new[] {1,2},new[] {3}}.SelectMany(x => x);