So I have a list of array of strings like below:
List<string[]> ArrayList = new List<string[]>();
ArrayList.Add(new string[] { "7112432","Gagan","Human Resource"});
ArrayList.Add(new string[] { "7112433", "Mukesh", "Information Technology" });
ArrayList.Add(new string[] { "7112434", "Steve", "Human Resource" });
ArrayList.Add(new string[] { "7112435", "Trish", "Human Resource" });
I want them to convert them to separate arrays like:
EmployeeNumber=["7112432","7112433","7112434","7112435"]
Name =["Gagan", "Mukesh", "Steve", "Trish"]
Department =["Human Resource", "Information Technology", "Human Resource", "Human Resource"]
I have achieved it by looping through the list using foreach
but I want to know if there is any efficient way of doing this because I have like 20 million items in the original List
> using LINQ C#](https://stackoverflow.com/questions/39484996/rotate-transposing-a-listliststring-using-linq-c-sharp)
– Moerwald Apr 08 '20 at 11:36