I have the following list of arrays
var list = new List<string[]>();
how to use LINQ to convert/Join them into a single array
string[] singleArray;
I have the following list of arrays
var list = new List<string[]>();
how to use LINQ to convert/Join them into a single array
string[] singleArray;
It can be done by SelectMany operator.
var singleArray = list.SelectMany(x => x).ToArray()