-1

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;
0

1 Answer 1

6

It can be done by SelectMany operator.

var singleArray = list.SelectMany(x => x).ToArray()
Sign up to request clarification or add additional context in comments.

1 Comment

Indeed it is an option...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.