using System;
using System.Collections.Generic;
using System.Linq;
/*
The example below shows how you can use SelectMany to coalesce collections into a single list
when Select returns a collection
*/
public class Program
{
public static void Main()
var tt = new List<List<int>>();
var a = new List<int>{1,2,3};
var b = new List<int>{4,5,6};
tt.Add(a);
tt.Add(b);
var gg = tt.SelectMany(t => t);
foreach(var g in gg)
Console.WriteLine(g);
}