I have a list of array of string: List<string[]> myList;
Is there any way to get an array of strings with all the elements string[0]?
Like List myList to string[] where elements are myList[string[0]]
I suppose it´s something like var result = from x in myList .Take(0) select x
And question 2)
is there any way to convert a string[] to string[1,] without a for loop?
Now I do:
for (int i = 0; i < arr.Length; i++)
range[0, i] = arr[i];
I need “this syntax” because I´m exporting columns to excel. And I need an object[,] to do a range.set_Value(Type, object[,]).
Is that what you’re looking for?
Take(n)only returns an enumerable with at mostnelements, so that’s obviously wrong.