LINQ C# Book

Input: IEnumerable
Lambda expression: TSource => IEnumerable or (TSource,int) => IEnumerable
SelectMany concatenates subsequences into a single flat output sequence.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main()
{
string[] fullNames = { "A B", "C D E", "F G" };
IEnumerable query = fullNames.SelectMany(name => name.Split());
foreach(String s in query){
Console.WriteLine(s);
}
}
}
The output:
A
B
C
D
E
F
G