Flatten List in LINQ
iList.SelectMany(x => x).ToArray()
Try SelectMany()
var result = iList.SelectMany( i => i );
With query syntax:
var values =
from inner in outer
from value in inner
select value;
iList.SelectMany(x => x).ToArray()
Try SelectMany()
var result = iList.SelectMany( i => i );
With query syntax:
var values =
from inner in outer
from value in inner
select value;